-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Menu focus indicator full width (fix #52911) #53289
Conversation
@sbatten that change is a bit crazy because it makes changes to literally every action we have by moving the I am not convinced this is the right solution only because the menu falls short. A better solution might be to look at the styling of the anchor element in the menu and maybe make that include the keybinding and span the full width. That would fix both this issue as well as the screen reader issue where the keybinding is not read. You could even have the anchor element have 2 additional elements (label, keybinding) and it would still work OK with a custom aria label. Since we now no longer accept a custom action item for the menus, we have the rendering under our control fully. |
1c8a1f5
to
a7ba364
Compare
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.
Tested and seems to work fine 👍
@sbatten one thing to keep in mind is that NVDA seems to announce the mnenmonic without the |
@bpasero that's the behavior you are seeing with these changes or what you would expect? On my machine, notepad + NVDA just says the letter, but VS Code + NVDA says Alt+ letter. I don't think either is wrong but using accesskey is what NVDA is using. |
@sbatten we can leave it but it might come back to us because we behave different from native menu |
fix #52911 #53070