Open mrfoxtalbot opened 1 month ago
Support References
This comment is automatically generated. Please do not edit it.
1) Install the Assembler theme on an AT site 2) Add a cover block to the header and insert an image 3) Then add a menu into the cover block 4) Add items in a submenu so they appear as a drop down. You need to add enough items that it stretches over the bottom of the cover block 5) Notice how the menu is clipped.
Screenshare https://github.com/Automattic/themes/assets/13706336/42a01528-0221-4d7b-8489-f91fa4036430
Triaged
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:After adding this code, the dropdown is no longer constrained by the cover block's height:![Screenshot 2024-06-04 at 11 13 13](https://github.com/Automattic/themes/assets/4452464/2af0ea71-4cb4-40d4-9bed-3559b0416b21)
Context: 8268355-zd-a8c
Steps to reproduce
What you expected to happen
All items should remain visible.
What actually happened
Submenu items were clipped.