-
Notifications
You must be signed in to change notification settings - Fork 2k
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 Block: Overlay Z-index nesting issues with consecutive cover blocks #75439
Comments
📌 SCRUBBING : RESULT - Replicated / Could Not Replicate / Uncertain
📌 FINDINGS/SCREENSHOTS/VIDEO
Screenshots/RecordingsNav block OUTSIDE of cover block, in Editor Nav block INSIDE of cover block, in Editor Nav block INSIDE of cover block, in Editor, no 2nd cover block
📌 ACTIONS
|
Another report here: 6223970-zen I could reproduce this on a test site. In this case, the submenu is getting cut off at the end of the cover block. |
38262835-hc I had a customer report the same issue that @Gustavo-Hilario reported. That is: when a Navigation Block is nested inside of a Cover Block, the submenu is cut off at the bottom of the Cover Block. |
Customer report in #81459 :
|
Another customer report: 7374639-zd-a8c |
another one here: 7396302-zd-a8c. Provided the CSS workaround |
reported in 7707902-zd-a8c |
Another report: 7790193-zd-a8c |
Another one: 7960428-zd-a8c As a workaround, I advised the user to replace the Cover block behind the Nav menu with a Group block. Then add a Background image to the Group block. |
Another report on 8164886-zd-a8c |
Should be fixed with this PR: WordPress/gutenberg#65626 |
Another report: 8849232-zd-a8c Advised to replace the Cover block behind the Nav menu with a Group block. Then add a Background image to the Group block. |
Removing groundskeeper label since this has been picked up. |
Closed with WordPress/gutenberg#66093 |
User reported same issue here: 9291659-zd-a8c. Reopened the bug report. I was able to replicate the same behavior on my test site. Same as described by @Gustavo-Hilario here. |
This is a core issue: WordPress/gutenberg#45353
Feel free to use this issue for tracking WordPress.com Customer reports. - cuemarie
Quick summary
If a navigation block is nested in a cover block, and there is a cover block after it on the page, the contents of the second cover block will show on top of the navigation overlay.
Both the header and content immediately after are in cover blocks here:
In this case, when expanded, the navigation overlay sits underneath the second cover block.
If there is an image in the second cover block...
...the navigation overlay will overlap the image, but not the overlay or the text.
Setting a background color for the cover block creates an opaque overlay, so that does completely cover the navigation section.
If the navigation block is not within a cover block...
then the overlay loads correctly.
Steps to reproduce
What you expected to happen
The navigation menu should become the top element on the page.
What actually happened
The navigation overlay sits underneath the second cover block's overlay. I believe the z-index settings of the navigation block's parent cover block overlay take precedence over the navigation block's settings here.
Setting the z-index for the cover block's inner content as a number greater than 1 seems to fix the issue. Since this is generally the first cover block on the page, a CSS workaround that might work is:
Otherwise, a different layout for the second element of the page or the header may be necessary.
Noticed in ticket here:
6174732-zen
Impact
Some (< 50%)
Available workarounds?
Yes, easy to implement
Platform (Simple and/or Atomic)
No response
Logs or notes
No response
The text was updated successfully, but these errors were encountered: