-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Spaces menu keyboard and screen reader navigation is broken #130898
Comments
Pinging @elastic/kibana-security (Team:Security) |
My suggestion would be updating that component to use EuiSelectable with a custom Look for the |
@cchaos The existing behavior allows a user to middle-click or right-click a space in the popover and open it in a new browser tab (using the EuiContextMenuItem href prop). The label prop of EuiSelectableOptionProps is defined as a string, but if I set it to an anchor element with an appropriate href it appears to function in the same way. Is an acceptable/intended use scenario, or is there a more recommended way to achieve this behavior with EuiSelectable? |
@constancecchen What did we end up implementing for the EuiSelectableSitewideTemplate component to be able to open options like normal links? Is it something that is now available also to the generic EuiSelectable? |
@cchaos elastic/eui#5926 affects the generic EuiSelectable, yes, so now all You could also add middle mouse button checking via |
I stated to answer this question on another Kibana ticket, but didn't have a complete picture. This comment elastic/eui#5408 (comment) I think describes what you're looking for here, and a way to make semantic distinction for listboxes vs. menus for assistive tech users. |
@constancecchen @1Copenut @cchaos Thanks for the feedback! Sounds like currently, the best approach is to treat Spaces in the menu as 'navigation items' as opposed to links, and rely on intercepting keyboard/mouse event options (cmd/ctrl, mouse button, shift, etc.) to achieve the desired behaviors (open in new tab/window). |
Woohoo! Awesome work on this @jeramysoucy! |
Kibana version:
8.3.0 (unreleased)
Describe the bug:
In #130593, we upgraded to EUI 55. As a result, EUI panels no longer auto-focus on the first child element, and the
EuiContextMenuPanel
component no longer supports ahasFocus
property, and the keyboard/screen reader navigation for theSpacesMenu
component is broken.Steps to reproduce:
There might be other buggy behavior but this is what I observed in my short time testing the aforementioned EUI upgrade PR.
Expected behavior:
The spaces menu should be fully usable with keyboard and screen reader navigation.
Screenshots (if relevant):
Any additional context:
Based on the PR, the Spaces Popover List in the Edit Roles page is probably also impacted. I didn't examine that, but whoever takes on this issue should look at it too.
Edit 2022-05-19: there was another small change in EUI v55.1.3 that might have impact as well, see #132451 (review)
The text was updated successfully, but these errors were encountered: