Add fallback for checkbox aria-labels if description is not provided (#5066)

This commit is contained in:
Prospector
2026-01-08 07:47:32 -08:00
committed by GitHub
parent 6221fe5e08
commit 8175120c4c

View File

@@ -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"