mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 03:49:34 +00:00
Add Switch Role to Toggle Component for accessibility
This commit is contained in:
parent
1c573e55b0
commit
d39ed2ae38
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@
|
|||
on:mouseleave
|
||||
>
|
||||
<input
|
||||
role="switch"
|
||||
type="checkbox"
|
||||
class:bx--toggle-input="{true}"
|
||||
class:bx--toggle-input--small="{size === 'sm'}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue