This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[mdc-switch] add required aria-checked #5202
Labels
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. |
Yavanosta
added a commit
that referenced
this issue
Dec 18, 2019
Yavanosta
added a commit
that referenced
this issue
Dec 18, 2019
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. |
Yavanosta
added a commit
that referenced
this issue
Dec 18, 2019
Yavanosta
added a commit
that referenced
this issue
Dec 18, 2019
Yavanosta
added a commit
that referenced
this issue
Dec 24, 2019
Yavanosta
added a commit
that referenced
this issue
Dec 24, 2019
BREAKING CHANGE: Added setNativeControlAttr method in mdc-switch adapter.
Yavanosta
added a commit
that referenced
this issue
Dec 24, 2019
Yavanosta
added a commit
that referenced
this issue
Dec 24, 2019
Yavanosta
added a commit
that referenced
this issue
Dec 24, 2019
Yavanosta
added a commit
that referenced
this issue
Jan 7, 2020
* 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)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: