-
Notifications
You must be signed in to change notification settings - Fork 409
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
[FluentNavMenu] Show child items via FluentMenu
when collapsed
#1730
Conversation
…en collapsed
FluentMenu
when collapsedFluentMenu
when collapsed
Hi, As you are still working on it, I'll convert the PR to have a 'draft' status. |
…dd click behavior
@vnbaaij This is now basically feature complete except for one thing: Should links and groups without an icon on the first layer simply be hidden when the |
Yes, I think those should be hidden when collapsed |
Hi @hksalessio, Any idea when you can wrapthisup? No rush, just curious. |
Hi @vnbaaij, now :D Looking forward to your review! There are probably still some things to work out. Tests have been verified, though. |
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.
Love it. Couple of name changes but nothing shocking.
examples/Demo/Shared/Pages/NavMenu/Examples/NavMenuCollapsible.razor
Outdated
Show resolved
Hide resolved
@hksalessio Thanks for this. It has been merged! Can you create an additional PR where you work on accessibility (a11y) challenges for this addition? |
@hksalessio About this PR a11y, 2 tasks need to be checked:
|
@vnbaaij @dvoituron I will look into it! |
* [FluentNavMenu] Start work on showing child items via `FluentMenu` when collapsed * [FluentNavMenu] Add parameter for showing hierarchy when collapsed, add click behavior * [FluentNavMenu] Hide links and groups without icon when collapsed * [FluentNavMenu] Update variable names and documentation --------- Co-authored-by: Alessio Dell Aquila <aquila@hks-systeme.de> Co-authored-by: Vincent Baaij <vnbaaij@outlook.com>
Pull Request
📖 Description
This pull request adds the ability for the
FluentNavMenu
to display child items (FluentNavGroup
,FluentNavLink
) when collapsed. See following image for a better explanation:The feature can be tested in the "Collapsible Navigation Example" section of the "NavMenu" page.
🎫 Issues
In issue #1528, @AlthalusDGr8 asked for this exact feature as it is included in WinUI 3.
👩💻 Reviewer Notes
This is nothing but a quick, first implementation of this feature.
Although displaying the menu already works, it still needs some refinement and polishing.
For example, the links in the menu are not even clickable yet (i.e. they don't do anything) and I have modified FluentMenu for convenience reasons but I don't know whether this is desired by you.
I guess, most variables should be renamed properly as well.
📑 Test Plan
I have not yet checked, whether existing tests fail or succeed.
✅ Checklist
General
Component-specific
⏭ Next Steps
I will continue to work on this feature over the next few days (maybe weeks, depends on how much time I can find). You are still welcome to review the changes I made up until this point or modify my code in any way.