[a11y]: Icon in Small Toggle Causing Violation (Doesn't use aria-hidden or aria-label) #17598
Closed
2 tasks done
Labels
component: toggle
package: @carbon/react
@carbon/react
severity: 3
https://ibm.biz/carbon-severity
type: a11y ♿
type: bug 🐛
Package
@carbon/react
Browser
No response
Operating System
MacOS
Package version
1.66.0
React version
No response
Automated testing tool and ruleset
IBM Equal Access Accessibility Checker v3.1.75.9999
Assistive technology
No response
Description
When a small toggle is clicked, a checkmark icon appears on the toggle which is setting off the accessibility scanner, as it doesn't have a label or aria-hidden set to true like the rest of the carbon icons. Violation shown below in storybook and stackblitz:
WCAG 2.1 Violation
No response
Reproduction/example
https://stackblitz.com/edit/github-ba7pgw-dsvrxa?file=src%2FApp.jsx
Steps to reproduce
Suggested Severity
None
Code of Conduct
The text was updated successfully, but these errors were encountered: