You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tested the issue with the latest version of the product
Issue Description
Expectation
label-content-name-mismatch should not compare the content of the switch component with the aria-labelledby text.
Actual
label-content-name-mismatch is comparing the contents of the switch component with the aria-labelledby text.
How to Reproduce
The following code will produce the violation - "Ensure that elements labelled through their content must have their visible text as part of their accessible name"
`
#### Additional context
The text contained in the switch is value text of sorts even if the real value is controlled by the aria-checked. it's not a label so it shouldn't be compared for purposes of 2.5.3 Label in Name
The text was updated successfully, but these errors were encountered:
straker
added
fix
Bug fixes
rules
Issue or false result from an axe-core rule
and removed
ungroomed
Ticket needs a maintainer to prioritize and label
labels
Aug 22, 2024
Product
axe-core
Product Version
4.10.0
Latest Version
Issue Description
Expectation
label-content-name-mismatch should not compare the content of the switch component with the aria-labelledby text.
Actual
label-content-name-mismatch is comparing the contents of the switch component with the aria-labelledby text.
How to Reproduce
The following code will produce the violation - "Ensure that elements labelled through their content must have their visible text as part of their accessible name"
Notifications
The text was updated successfully, but these errors were encountered: