Nav unification - allow sidebar to be scrolled (while maintaining flyout menus) #46643
Labels
[Feature] Calypso & wp-admin Navigation
All navigation in Calypso and wp-admin, and the unified transitions between the two.
[Type] Task
Note: This is a separate issue for a task that was previously part of #46094.
--
We recently merged the first iteration of flyout menus in #46046 (comment). One of the known issues, that we'll have to address next:
Scrolling inside the scrollbar vs scrolling the sidebar with the page
Right now in Calypso the sidebar container is
position:fixed
and it's overflow content (i.e. more nav items than screen height) is scrollable. This is achieved by addingoverflow:auto
to the sidebar. The issue is thatoverflow:auto
prevents overflow content i.e. the flyout from being visible.We removed the
overflow:auto
on the sidebar for flyout menus to be visible in the nav unification prototype. This has two side effects: a) the sidebar container isn't scrollable anymore and b) when using the site switcher, the overflow is visible when selecting a site.wp-admin gets around the first issue by not having a scrollable sidebar container but instead adjusting the sidebar positioning via JS based on scroll state. The second issue is not present in wp-admin as there's no in-page site switcher.
The text was updated successfully, but these errors were encountered: