Add Switch Role to Toggle Component for accessibility

This commit is contained in:
Bert B 2022-08-10 09:45:02 -04:00 committed by GitHub
commit d39ed2ae38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,6 +54,7 @@
on:mouseleave
>
<input
role="switch"
type="checkbox"
class:bx--toggle-input="{true}"
class:bx--toggle-input--small="{size === 'sm'}"