-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mdc-switch] add required aria-checked #5202
Comments
Hi, Thank you for your suggestion. I'm assuming you are referring to updating the README for switch to include Please feel free to submit a pull request to update the docs accordingly! |
Hey, Yes, i'm talking about the README files. I (and i guess most people) use the codes snippets presented in the README docs. I'll go read the pull-request documentation and give it a try. |
Looks like the logic is missing from the component itself - the catalog's react component wrapping hides this issue. The above pull request should address this. |
BREAKING CHANGE: Added setNativeControlAttr method in mdc-switch adapter.
* fix(switch): handle aria-checked correctly. (#5202) BREAKING CHANGE: Added setNativeControlAttr method in mdc-switch adapter. * fix(switch): fix typos and always on switch documentation. (#5202) * fix(switch): replace constants with boolean to string conversion. (#5202) * fix(switch): fix typo. (#5202)
Feature Request
The current mdc-switch component uses
role='switch'
but not the required aria attributearia-checked
as described by MDN:Proposed solution
add
aria-checked
to the mdc-switch componentAlternatives considered
/
Additional context
Noticed this issue while searching for accessibility issues on our current projects. Everything else works as expected
The text was updated successfully, but these errors were encountered: