Skip to content

Commit

Permalink
fix(A11y): ToggleSwitch - Added role to icon to fix Accessibility war…
Browse files Browse the repository at this point in the history
…ning (#3634)

fix(A11y): Added role to icon to fix Accessibility warning
  • Loading branch information
christian314159 authored May 12, 2023
1 parent 475e6fa commit b6480c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/serious-planets-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kaizen/draft-form": patch
---

A11y fix: Added role=presentation to icon within ToggleSwitch
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ export const ToggleSwitch = ({
/>
<span className={styles.track}>
<span className={styles.thumb}>
<Icon icon={checkIcon} classNameOverride={styles.checkIcon} />
<Icon
icon={checkIcon}
classNameOverride={styles.checkIcon}
role="presentation"
/>
</span>
</span>
</span>
Expand Down

0 comments on commit b6480c6

Please sign in to comment.