You've already forked AstralRinth
forked from didirus/AstralRinth
Add fallback for checkbox aria-labels if description is not provided (#5066)
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
? 'cursor-not-allowed opacity-50'
|
? 'cursor-not-allowed opacity-50'
|
||||||
: 'cursor-pointer hover:brightness-[--hover-brightness] focus-visible:brightness-[--hover-brightness]'
|
: 'cursor-pointer hover:brightness-[--hover-brightness] focus-visible:brightness-[--hover-brightness]'
|
||||||
"
|
"
|
||||||
:aria-label="description"
|
:aria-label="description || label"
|
||||||
:aria-checked="modelValue"
|
:aria-checked="modelValue"
|
||||||
role="checkbox"
|
role="checkbox"
|
||||||
@click="toggle"
|
@click="toggle"
|
||||||
|
|||||||
Reference in New Issue
Block a user