-
Notifications
You must be signed in to change notification settings - Fork 211
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(action menu): keyboard accessibility omnibus #5031
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 004a093 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Branch previewReview the following VRT differencesWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
If the changes are expected, update the |
Tachometer resultsCurrently, no packages are changed by this PR... |
Lighthouse scores
What is this?Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on Transfer Size
Request Count
|
Pull Request Test Coverage Report for Build 13202993970Details
💛 - Coveralls |
…child WAI ARIA APG
…nikkimk/fix-menu-a11y
This seems to have broken the preventDefault behaviour when pressing space on a menu item. The page now scrolls. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment #5031 (comment)
…nikkimk/fix-menu-a11y
…nikkimk/fix-menu-a11y
Action menu items are not reading for screen readers.
Description
Action menu should be using a roving tabindex not
aria-activedescendant
because of cross-root ARIA limitations as well as lack of iOS support.The
sp-menu
that action menu uses was refactored to use a roving tabindex, and the numpad keys fix that was made in action menu are now applied to the focus group controller which the roving tabindex controller uses.Related issue(s)
Motivation and context
VoiceOver could not read the menu items when navigated via keyboard because of the cross-root aria issues above. Using the same roving tabindex controller that other components in our repo use, allows us to ensure roving tabindex and keyboard navigation is accessible and consistent across all components.
How has this been tested?
selects
and menu groups should function like the menu groups in the Editor Menubar Example from the WAI ARIA APGDoes screenreader read menuitems? (resolves #4556 and without regression on #3751)
Can you use a screenreader to click a menuitem? (resolves #4997)
Does keyboard navigation of menuitems work as it should? (closes #4557)
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main
.