-
Notifications
You must be signed in to change notification settings - Fork 83
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
V14 - Disabled submenu is focused by keyboard actions #7142
Closed
paodb opened this issue
Feb 22, 2024
· 4 comments
· Fixed by vaadin/vaadin-menu-bar#166 or vaadin/vaadin-list-mixin#101
Closed
V14 - Disabled submenu is focused by keyboard actions #7142
paodb opened this issue
Feb 22, 2024
· 4 comments
· Fixed by vaadin/vaadin-menu-bar#166 or vaadin/vaadin-list-mixin#101
Comments
rolfsmeds
added
bug
Something isn't working
BFP
Bug fix prioritised by a customer
V14 only
Issue is only valid for Vaadin 14
labels
Feb 23, 2024
Reopened as the fix was incomplete. |
The root cause of the issue with disabled item getting focused is the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
A disabled submenu is focusable by keyboard.
Expected outcome
A disabled submenu item should not be focusable nor accessible.
Minimal reproducible example
The error can be reproduced in the current Vaadin14 documentation demo:
vaadin.com/docs/v14/example?embed=menu-bar-disabled-wc.js&import=component/menubar/menu-bar-disabled.ts
Note that the same example in Vaadin 24 works as expected.
Steps to reproduce
Step 1: Once the page is loaded and opened, try to navigate to the share menu using the keyboard either by pressing Tab or the right arrow key.
Step 2: Once the Share menu bar is highlighted, press 'Space' or 'Enter' to open the submenu items.
Step 3: In Share menu, we have two submenu items - 'by email' and 'get link'. Now press down arrow. You might notice that you need to press down arrow twice to reach the enabled menu item 'get link'.
Actual Result:
The disabled item 'by email' is focusable when we press down arrow for the first time. Since no CSS has been added for its focus ring, it's not visible but it can be focused via keyboard actions.
Expected Result:
The submenu item should be accessible when the down arrow is first pressed, while the disabled submenu item "by email" should not be accessible or focusable.
Environment
Vaadin version(s): 14.11.3
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered: