-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Navigation Link: Limit Nesting Depth to 5 #30199
Conversation
Size Change: +1.3 kB (0%) Total Size: 1.42 MB
ℹ️ View Unchanged
|
This works excellently well. Very very simple, the button simply disappears: It's a smallstep and I still need to think about how it works when the navigation gets so wide it adds a horizontal scrollbar, but that's a separate thing that will still need this change to happen. Question: which theme are you testing in here? I'm seeing a weird extra amount of spacing between items. |
a918f12
to
ebbb62c
Compare
Can I get a 👍🏻 to merge? |
Is intended behavior here to allow existing nested menus to be > 5, and only disable adding on edit? |
Thanks for looking at this one @georgeh! I think the approach is pretty reasonable and this tests well. If an existing menu has a depth of > 5, content is preserved. E2E tests and static lint checks are ❌ . If E2Es still fail after a rebase with trunk, let 🔍 a bit. If the test is flakey we can try and get a codeowner to 🔍 more deeply. |
@gwwar the intended goal is to stop people from adding beyond 5, but if they already have a depth beyond 5 I don't think we should truncate that. I also messed up something with a rebase so I'm retracing my steps, and that should fix the (correctly) failing checks. |
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.
Tests well, thanks @georgeh !
Closes #21691
Description
Removes the ability to nest submenus beyond 5 to avoid scrolling off the screen.
How has this been tested?
Manually tested in desktop.
Screenshots
When choosing a Navigation Link that isn't too nested, the submenu icon appears:
When choosing a Navigation Link that has reached the limit, the icon goes away:
Types of changes
Checklist: