1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-19 23:40:07 +00:00

feat(a11y): add checkbox role to toggle items (#2321)

This commit is contained in:
lazzzis 2023-08-10 03:18:35 -07:00 committed by GitHub
parent 91db9b03a8
commit a4d34323ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,7 @@ const { disabled = false } = defineProps<{
<button
exact-active-class="text-primary"
block w-full group focus:outline-none text-start
role="checkbox" :aria-checked="checked"
:disabled="disabled"
:class="disabled ? 'opacity-50 cursor-not-allowed' : ''"
>