Skip to content

NavigationMenu implement Accordion multiple attribute #4072

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

Open
agorem opened this issue May 5, 2025 · 2 comments
Open

NavigationMenu implement Accordion multiple attribute #4072

agorem opened this issue May 5, 2025 · 2 comments
Labels
enhancement New feature or request triage v3 #1289

Comments

@agorem
Copy link

agorem commented May 5, 2025

Description

Hi,

I believe that it would be very interesting to implement in the NavigationMenu an attribute similar to the Accordion multiple to allow to open only branch of the menu when the menu is vertical.

Kind regards...Antonio

Additional context

No response

@agorem agorem added enhancement New feature or request v3 #1289 triage labels May 5, 2025
@benjamincanac
Copy link
Member

Would you mind being a bit more specific?

@agorem
Copy link
Author

agorem commented May 5, 2025

When you have a vertical multilevel menu like this:

1, 2, 2.1, 2,2, 2.3, 3, 3.1, 3.2

Currently if you click in 2 its submenu is shown. If you click on 3 its submenu is shown but the submenu 2 is still shown.

The behaviour of an Accordion with the attribute multiple=false when you click an option the others collapse.

My proposal is to add a similar attribute to allow the following behavior:

if you click in 2 its submenu is shown. If you click on 3 its submenu is shown and the submenu 2 collapses.

If you have a Menu with more than 2 levels, the approach is to show the path and the direct children of the node.

These behavior is more efficient to avoid vertical scrolls.

Kind regards...Antonio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants