-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
MenuList is not accessible #17539
Comments
Yep thanks for opening this. I want to move the keyboard navigation to menulist and menu only handles initial focus. Basically MenuList implements listbox and Menu is just a styled wrapper. |
It won't be a However, MenuList will have proper keyboard navigation documented. Since it's only a component that should be used in the menu (hence the MenuList) it won't work without configuration. We can't just focus it when it mounts since we don't know if it's acccessible and With #17571 we will end up with |
I'm not sure I understand this part. Are you saying MenuList shouldn't be used by itself? |
At least it's not intended to. It should already work perfectly fine with regard to keyboard navigation if used with It probably makes sense to implement a listbox at some point or provide persistent focus managment out of the box. Otherwise I'm not sure what issue we're talking about? I thought it was mainly about our MenuList usage in the docs. |
We've been using
This worked fantastic in v3 and is a great way to give a good user experience for keyboard users when browsing long lists instead of having to tab through each item in the list. The main thing missing right now is that the |
I seem to remember in v3 that the |
See also #15597... |
Yeah I this is a bit unfortunate that this was used that way. Managing the active descendant was never necessary for So MenuList does implement keyboard navigation but is not concerned with persisting the active descendant. Otherwise it would help if you could add a test that is currently failing. |
I understand where you guys are coming from now. I think the root of the issue is we were using Here's an example to illustrate a couple of common cases we've run into where Indeed #15597 seems promising @mbrookes. I've said it before but once again - thanks for taking accessibility seriously in MUI! |
Creating this to track the follow-up fixes from #16644 for
MenuList
. #17506 solves theMenu
focus issue which seems to work well, but we still need proper keyboard support inMenuList
.See #16644 for in-depth discussion on this issues.
The text was updated successfully, but these errors were encountered: