-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
Initial ARIA fix-up of menus #16179
Initial ARIA fix-up of menus #16179
Conversation
additionally, change old role="presentation" for dividers to role="separator"
Dang, that's a lot of |
Unfortunately, them's the breaks when using |
just to be clear: we either need to add all these roles (to properly implement the expected set of roles for an ARIA menu), or we need to remove the incomplete |
What's the downside of removing |
the downside is that application-like menus will not be announced by assistive technologies in the same way as real native application menus (think for instance File, Edit, etc menus in a Windows native app). (though to work correctly, all other roles also need to be in place and the pattern cannot be deviated from with any mixed content). Removing the |
Sounds reasonable to me. Holler when you hear more. |
parking this non-scientific poll here for now, but my gut feeling is to remove some of the |
In an attempt to make this mega-PR a bit more digestible, while I plan moving away from actual |
Closing this, as #16571 takes care of the rest... |
Add aria-haspopup to trigger element and missing role/tabindex for menu items.
Additionally, change old role="presentation" for dividers to role="separator".
Fixes #15829
Note that there are still outstanding issues with the current ARIA-fication of menus (particularly with their JS-based behavior). This fix only introduces the correct (required, in the case of
role="menuitem
androle="presentation"
on the<li>
elements) role assignments./cc @mdo @cvrebert