Skip to content
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

Is there nested menu support? #1356

Closed
osequi opened this issue Dec 8, 2020 · 9 comments Β· Fixed by #4976
Closed

Is there nested menu support? #1356

osequi opened this issue Dec 8, 2020 · 9 comments Β· Fixed by #4976
Labels
enhancement New feature or request rsp:MenuTrigger

Comments

@osequi
Copy link

osequi commented Dec 8, 2020

❔ Question

I've been looking for nested menu support both in Spectrum and Aria. No mentions found.

πŸ”¦ Context

Nested menus are as necessary as nested lists.

@osequi
Copy link
Author

osequi commented Dec 8, 2020

The foundation is present: https://react-spectrum.adobe.com/react-stately/useTreeData.html
So theoretically is possible.

@matthewdeutsch
Copy link
Collaborator

hi @osequi, nested menus are not supported yet, but it's something we absolutely plan to address down the line

@hehex9
Copy link

hehex9 commented Dec 9, 2021

hi, any news on nested menus? πŸ˜ƒ

@Lighttree
Copy link

Lighttree commented Dec 29, 2021

Hi guys, same question. Maybe someone can suggest at least a temporary workaround for this? It feels like its possible to use useTreeState for this, as it has an "expanded" keys collection. Is there a particular blocker why I won't be able to implement this using current functionality, even if it's not supported out of the box?

I think I need to implement a new type for nested data structure the same way as we have Item and section or even reuse menu itself, not sure how hard it can be :)

@torgeadelin
Copy link

Any update on this?

@LFDanLu
Copy link
Member

LFDanLu commented Aug 18, 2022

Apologies about the delayed response, the team still hasn't picked up nested menus due to other component priorities. We're are also still waiting on some additional design/a11y support for certain facets of nested menu items. I honestly can't say whether or not useTreeState would be sufficient for an implementation of nest menus without trying it myself (my gut feeling is that it should be enough though).

For now you can reference https://github.com/adobe/react-spectrum/projects/1 to see what the team is currently working on.

@dcastil
Copy link

dcastil commented Aug 13, 2023

Looks like @LFDanLu is currently working on nested menus. πŸŽ‰

https://github.com/orgs/adobe/projects/19/views/4?pane=issue&itemId=21692197

@shivamtracxn
Copy link

Hey, any updated on this?

@snowystinger
Copy link
Member

Yep, you can follow the PRs
#5415
#4976

they are getting to be close :)

@LFDanLu LFDanLu mentioned this issue Nov 30, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rsp:MenuTrigger
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants