Skip to content
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

fix(aria-allowed-attr): pass aria-expanded on checkbox & switch #4110

Merged
merged 6 commits into from
Aug 8, 2023

Conversation

WilcoFiers
Copy link
Contributor

WAI-ARIA 1.3 has proposed to dramatically change which roles allow aria-expanded. Per this PR, checkbox and switch now allow this attribute. Quite a few more roles no longer allow aria-expanded.

I've opened up an issue requesting that ARIA 1.3 deprecate aria-expanded on those roles, instead of simply removing them. I think simply removing them would create a lot of unnecessary friction. If the W3C decides not to stay backward compatible we may have to figure out a different way to present this, but by far the best solution here would be to use deprecation, which is what they've also done in other places. See w3c/aria#1990

Closes #3339, closes #3343

scottaohara and others added 4 commits January 10, 2022 17:04
All roles reviewed to largely remove (but in a few cases add) `aria-expanded` as a supported attribute.  

This matches both work done in ARIA 1.2 to correct for roles that should not have allowed the attribute, while also incorporating some ARIA 1.2 updates where some roles had support for the attribute added.

closes #3339
@WilcoFiers WilcoFiers requested a review from a team as a code owner July 31, 2023 13:14
straker
straker previously requested changes Aug 1, 2023
lib/standards/aria-roles.js Outdated Show resolved Hide resolved
Co-authored-by: Steven Lambert <2433219+straker@users.noreply.github.com>
straker
straker previously approved these changes Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

roles that allow aria-expanded and aria-roles.js question
4 participants