-
Notifications
You must be signed in to change notification settings - Fork 933
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
[useMenuButton] Create hooks for menu and menu button #1112
Comments
useSelect
suitable for implementing the ARIA menu button design pattern?
First of all I have to say that I would be super happy to have There is a similarity between the select and menu button but there are also a lot of different things, like having sub-menus and focus management in those menus. I am not going to lie, it may take a while to develop it, but it would be super awesome! I will leave this issue open as a feature request, and we can start discussing specs and how we can use Downshift's principles in building it (stateReducer, control props, on change props etc). |
I’m really tempted to give this a try. I’ve been through aria-practices's recommended specs for menus, and also been going through useSelect's implementation. There are considerable implementation differences, also keeping in mind changes landing with #1402. @silviuaavram, If you're still interested in having |
@YaseenAlGailani I'd be hugely interested in having a |
@briavicenti I'm still interested as well. This discussion is barely going as you can see however, I might still submit a PR at some point (hopefully, if I don't get dragged into something else) cause I've already started implementing |
I think that I am now focusing on some improvements for the existing hooks, so will not work on this directly, but will be happy to help as much as I can. |
Hi there, thanks for your great work on Downshift!
We're currently using the
useCombobox
hook and will definitely be usinguseSelect
for our custom select components.I'm currently tasked with implementing an accessible menu button component for our product and was thinking about whether Downshift could be used for this purpose, too. There seems to be quite a bit of overlap between the ARIA design patterns of select/listbox and menu/menu button, so
useSelect
may be workable. Do you have any examples of this being done, or any advice on whether you think this is a good or bad idea? Do you maybe already have plans for auseMenuButton
hook?If I went with
useSelect
, I'd expect it to be necessary to override some of its defaults, for example the role of the menu will have to bemenu
, notlistbox
. But otherwise the functionality seems reasonably similar. Any pointers?The text was updated successfully, but these errors were encountered: