-
Notifications
You must be signed in to change notification settings - Fork 1.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
Tab navigation on OverflowMenu skips the tabbing of upcoming focusable elements #9471
Comments
Hi there, @DavidC123! 👋 I believe that the As a result, you would use arrow keys to navigate instead of the Tab key. Hope this helps! Let me know if you have any questions 😄 |
Hey @joshblack, thanks for the response! I understand that, but the issue is that it seems to break the flow of tab navigation when tabbing out of the expanded |
Thanks, @DavidC123! So sorry I misread that, you're totally right. I really appreciate you clarifying, it helped a ton! |
Please add Also, please figure out why the menu Also, I see that the default accessible name for the overflow menu button AND the menu are both Thanks! |
Do we have any update on this issue and the above comment added by Carolyn? |
I'm also affected by this issue in IBM Hyper Protect Crypto Services project, the very same accessibility problem was discovered by our tester. |
> Fix tab skip content on menu tab-out > Fix cannot navigate through OverflowMenu with arrows > Delete unused function > Small `closeMenuAndFocus` refactor Closes carbon-design-system#9471
@mbgower looking to get your insight on this? is this a change we should implement for |
Okay, so I'm assuming the key problems outline in this ticket are addressed, and we're just dealing with the naming comment? I thought I'd opened a ticket on naming of this already... I just had a look at the existing one in storybook right now. I'm seeing an aria-label of "overflow-menu" on the button, with the long string on the SVG. Suggest taking out the aria-label on the button and letting it inherit the name from the svg. Here's what I made it Sidenote: I note that there is no Carbon tooltip set up on this button. There should be. All icon-only-button should be set up that way so that they're names are revealed on focus and hover. So that should be part of overflow menu. So, I fired up JAWS just to make sure what I was advising made sense, and there's is something seriously wrong in this implementation on storybook. At the moment, when I open up the kebab, focus goes to Stop app and it is announced, as expected (GOOD). However, arrowing down does nothing. |
@mbgower will be fixing tab and arrow navigation on the PR that i'll submit to close out this ticket (here's a demo) just trying to get the aria-labels in order as well . so in this scenario where we remove the ("overflow-menu" on this screenshot because we're overriding it by sending in a prop) |
I think "options" for the ul should be fine. Because it's a different kind of component, it's fine for them to have the same name. It really shouldn't be in the tab order, etc., but to the degree it is and is announced, the shorter name is better. |
* fix(overflow-menu): accessibility issues > Fix tab skip content on menu tab-out > Fix cannot navigate through OverflowMenu with arrows > Delete unused function > Small `closeMenuAndFocus` refactor Closes #9471 * fix(overflow-menu): a11y updates * rewrite default aria-labels to "Options" * use IconButton to display tooltip * test(overflow-menu): update overflowMenu usage snapshot and update tests * fix(tooltip): do not override child's onBlur and onFocus eventHandlers * chore(overflow-menu): remove unnecessary feature flag assertion * docs(overflow-menu): add tooltip customization docs and test focus el * fix(overflow-menu): add styles to preserve breadcrumb styling * fix(icon-button): add closeOnActivation prop on tooltip icon-button closes on click, enter or space * fix(overflow-menu): move onKeyDown event to menuBody, fix broken tests * fix(overflow-menu): do not calculate wrapper height * fix(overflow-menu): update snapshots to include new wrapper class * fix(overflow-menu): remove test button from story --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Brief description
Tab navigation on OverflowMenu causes it to skip the tabbing of upcoming focusable elements and continues tab navigation from top of the DOM.
Environment
Detailed description
Steps to reproduce the issue
The text was updated successfully, but these errors were encountered: