themes
themes copied to clipboard
Assembler: Tall drop down menus overflow the container and are clipped
Quick summary
The main menu is nested inside a cover block that is site as overflow:hidden
.
If enough drop-down menus are added to the main menu, they will overflow and become invisible & unreachable.
Here's a video:
https://github.com/Automattic/themes/assets/4452464/1d84262c-4944-4ce1-8493-948cd0644dfc
Adding this CSS fixes the issue (but it might be too generic and affect cover blocks elsewhere). Perhaps we could use .wp-site-blocks > .wp-block-cover:has(.wp-block-navigation__submenu-container)
to increase specificity:
.wp-site-blocks > .wp-block-cover {
overflow:visible
}
After adding this code, the dropdown is no longer constrained by the cover block's height:
Context: 8268355-zd-a8c
Steps to reproduce
- Activate Assembler
- Set up a header that includes a cover.
- Add enough items to a submenu to make it overflow.
What you expected to happen
All items should remain visible.
What actually happened
Submenu items were clipped.