-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Local Navigation: Improve style and behavior across screen sizes (#573)
* Prevent menu from wrapping to second line * Use the block-specific hook to save a conditional * Move the custom property section to the top of the file * Style the mobile modal for medium & small screens, update focus states and spacing to match designs * Ensure child navigation block uses the expected attributes * Add an extra navigation block which is always collapsed, hidden by default * Adjust spacing & breakpoints * Update alignment of spacer dot * Hide the page title on small screens to prevent overflow * Prevent very long titles from wrapping on medium-small screens * Show a mobile menu (chevron dropdown) when the local nav and/or page title would cause the text to wrap * Get the gap value dynamically On some sites (like Documentation), this is 24px, while it's 20px on Developer. * Ensure the focus style appears inside the overflow boundary * Fix alignment issues * Local navs with bottom borders should only show the border on scroll * Add class to fade in content on scroll * Force section title elements to not wrap * Use more broad title selector, check before using * Switch to parseInt for integer conversion * Fix scrolling when mobile menu is longer than screen height * Fix height & dropdown spacing on mid-sized screens
- Loading branch information
Showing
3 changed files
with
348 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.