-
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
[a11y]: OverflowMenuItem, None of the descendent elements with "menuitem" role is tabbable #12728
Comments
@mbgower @tombrunet Is this a valid failure? @francinelucca just addressed the keyboard navigation in #12977. OverflowMenuItem navigation happens via arrow keys, not by tabbing. |
Any updates here @tay1orjones the issue still seems to be occurs https://react.carbondesignsystem.com/iframe.html?id=components-overflowmenu--default&viewMode=story |
@mateBe95 In the overflowmenu item navigation is done using the up/down arrow keys. @mbgower bumping, is there something else we should be considering here regarding this violation? |
I don't understand the issue. I'm pulling in @tombrunet to have a look. I am seeing an oddity where when I press tab after opening the menu, the focus is going around the whole list of options. That suggests there's something a little dodgy in the code? |
I need to think about this one a little bit. It's a little weird because as soon as you tab away, it goes away, so the need to tab back isn't really there. The button that launches the menu may need an aria-controls on it to indicate that it's what is launching the menu. But, I'm not sure we handle that situation for this rule yet. |
Not quite sure how to reproduce this one but we should be able to make the menu close when it loses focus if desired, it might be a bug that it doesn't currently. We can also explore the tabbable-menu option is that is the guidance. |
Would the new OverflowMenuV2 implementation solve this to some extent? The items are still not tabbable, but it uses the new Menu primitives and might be more properly applying |
Synced up with a11y folks, tried adding *We still want to add the |
Hi Team, can we have this issue fixed by end of April? thanks |
@zhanttbj It was determined this violation is a false positive from the a11y checker in this case; the fix for that is being tracked IBMa/equal-access#1402. The menu does not use tabs to navigate, it uses up/down arrow. |
@francinelucca @tombrunet Is |
A button shouldn't own a menu. |
does that mean we should remove the aria-owns property from |
If the intent is to have the menu item appear immediately after the button, but you can't do that because of CSS / portal issues, you would have some sort of empty node after the button that owns the menu (e.g., |
Good point. The OverflowMenuV2 currently places the <div aria-owns="menu-id">
<button>…</button>
</div>
<ul id="menu-id">...</ul> From my manual testing with VoiceOver I can update |
@tombrunet any input/concern here about Jan's proposal of using |
The menu would be owned on the div, but the button still needs aria-controls to indicate what the button is doing, so you need both. |
got it, thanks!! @tombrunet |
@tombrunet This was done in #13678 but it still fails So my understanding (correct me if I'm wrong here) is that this is still blocked by IBMa/equal-access#1402. I'll reopen this for now until that issue is resolved. |
I believe I'm also running into this same issue with Refs #14211 |
@tay1orjones It looks like our issue was closed shortly after you re-opened this one. Are you still getting this issue? |
Package
carbon-components
Browser
Chrome
Operating System
No response
Package version
Newest
React version
16.12.0
Automated testing tool and ruleset
IBM Equal Accessibility Checker
Assistive technology
No response
Description
None of the descendent elements with "menuitem" role is tabbable
WCAG 2.1 Violation
No response
Reproduction/example
https://react.carbondesignsystem.com/iframe.html?id=components-overflowmenu--default&viewMode=story
Steps to reproduce
https://react.carbondesignsystem.com/iframe.html?id=components-overflowmenu--default&viewMode=story
1.Open menu.
2. Scan.
Code of Conduct
The text was updated successfully, but these errors were encountered: