-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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: Fix page list issues in overlay #37444
Conversation
Size Change: -90 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
padding-left: 32px; | ||
padding-right: 32px; | ||
padding-left: 2em; | ||
padding-right: 2em; |
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.
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.
I guess that change looks a bit slipstreamed in. When I made that change, I actually made it to match up with the change made in #37323. But I'm happy to revisit both of these? What would be ideal in your mind?
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.
I think this can be handled separately. Ideally there's some other measurement we can harness for the default (maybe blockGap?). Or else, switching to rem
would be a little more stable.
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.
I'll follow up with rems
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.
Followup: #37478
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.
Also, we should backport this one for 5.9. 👍 |
* Fix padding for page list in overlay menu. * Fix vertical stacking of menu containers.
Description
Fixes #37413.
If you mix manual/custom navigation items with a Page List, the two containers would wrap inappropriately:
This PR fixes that so it wraps correctly:
It also fixes an issue with padding, both for indentation of page list items, and bottom padding for long overlays that scroll:
How has this been tested?
Insert a navigation menu that features lots of items, and notably including both manually added items, and a Page List. Set it to always open as an overlay, then verify the menu items stack vertically on a small screen.
Checklist:
*.native.js
files for terms that need renaming or removal).