Skip to content

Commit f2e6dcf

Browse files
authored
Merge pull request #2997 from afrisalyp/2802
2802
2 parents b4df4fc + 096ae9f commit f2e6dcf

File tree

1 file changed

+3
-0
lines changed
  • src/shared/components/SwitchWithLabel

1 file changed

+3
-0
lines changed

src/shared/components/SwitchWithLabel/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ function SwitchWithLabel({
2323
className={theme.wrapper}
2424
onClick={() => onSwitch(!enabled)}
2525
onKeyPress={() => onSwitch(!enabled)}
26+
role="switch"
27+
aria-checked={enabled}
28+
tabIndex={0}
2629
>
2730
{labelBefore}
2831
<Switch

0 commit comments

Comments
 (0)