-
Notifications
You must be signed in to change notification settings - Fork 19
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
cc-button: implement parts of ARIA API #699
Comments
florian-sanders-cc
added
enhancement
New feature or request
a11y
Related to accessibility
labels
Feb 6, 2023
7 tasks
pdesoyres-cc
added a commit
that referenced
this issue
Oct 12, 2023
- add `a11yExpanded` property for setting `aria-expanded` attribute on the inner button. - add `a11yPressed` property for setting `aria-pressed` attribute on the inner button. Fixes #699
pdesoyres-cc
added a commit
that referenced
this issue
Oct 23, 2023
- add `a11yExpanded` property for setting `aria-expanded` attribute on the inner button. - add `a11yPressed` property for setting `aria-pressed` attribute on the inner button. Fixes #699
pdesoyres-cc
added a commit
that referenced
this issue
Oct 27, 2023
- add `a11yExpanded` property for setting `aria-expanded` attribute on the inner button. - add `a11yPressed` property for setting `aria-pressed` attribute on the inner button. Fixes #699
pdesoyres-cc
added a commit
that referenced
this issue
Nov 2, 2023
- add `a11yExpanded` property for setting `aria-expanded` attribute on the inner button. - add `a11yPressed` property for setting `aria-pressed` attribute on the inner button. Fixes #699
pdesoyres-cc
added a commit
that referenced
this issue
Nov 8, 2023
- add `a11yExpanded` property for setting `aria-expanded` attribute on the inner button. - add `a11yPressed` property for setting `aria-pressed` attribute on the inner button. Fixes #699
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
There are some situations where we need to add ARIA attributes to make a button accessible.
To name a few:
aria-expanded
for disclosure patterns (Show / Hide)aria-controls
for the same pattern as above. => we cannot do it yet, we need to wait forCross root ARIA - export ID
(https://github.com/WICG/aom/blob/gh-pages/exportid-explainer.md)aria-pressed
for toggle button patterns.The only way to do this is to mimic the ARIA API by adding props to our
cc-button
.We'll need to make sure these props are properly namespaced to avoid clashing with actual ARIA.
(Once Accessibility Object Model is available 🙄 we'll be able to simplify this but we cannot really wait for it)
The text was updated successfully, but these errors were encountered: