Skip to content

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

Merged
WilcoFiers merged 6 commits intodevelopfrom
scottaohara-patch-1
Aug 8, 2023
Merged

fix(aria-allowed-attr): pass aria-expanded on checkbox & switch#4110
WilcoFiers merged 6 commits intodevelopfrom
scottaohara-patch-1

Conversation

@WilcoFiers
Copy link
Copy Markdown
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
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