Skip to content
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

Cover block in content body overlaps mobile menu overlay #45353

Open
jamiepalatnik opened this issue Oct 27, 2022 · 5 comments
Open

Cover block in content body overlaps mobile menu overlay #45353

jamiepalatnik opened this issue Oct 27, 2022 · 5 comments
Labels
[Block] Cover Affects the Cover Block - used to display content laid over a background image [Block] Navigation Affects the Navigation Block [Type] Bug An existing feature does not function as intended

Comments

@jamiepalatnik
Copy link

Description

When a Navigation block is added within a Cover block in the header template part, and then a Cover block (using background image and also contains a Post Title block) in the content body is rendered on mobile, the second Cover block overlaps the mobile menu overlay, as if the z-index is greater than the menu.

Step-by-step reproduction instructions

  1. In the site editor, create a header template part that is comprised of a Cover block that contains a Navigation block
  2. Also in the site editor, outside the header template part, create another Cover block with a background image and Post Title block
  3. Save changes, then preview the site in responsive view, particularly the mobile menu

The structure in the site editor should look like this:

Cover block 1

Screenshots, screen recording, code snippet

Screen recording:

Cover.block.issue.mp4

Environment info

  • WordPress Version 13.2.2
  • Gutenberg active
  • Tested on Chrome
  • Was able to reproduce on multiple themes, including Twenty Twenty-Two and Blockbase

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@DaisyOlsen DaisyOlsen added [Type] Bug An existing feature does not function as intended [Block] Cover Affects the Cover Block - used to display content laid over a background image labels Oct 31, 2022
@DaisyOlsen
Copy link
Contributor

Confirmed that this occurs when there is a Navigation block inside a cover block. Affects cover blocks in the content body.

@Jaykame
Copy link

Jaykame commented Dec 10, 2022

Ran into this with a user who using the blockbase theme and their Cover block on their site is covering their menu on mobile view. This appears to not only affect Cover Block inside the Navigation block but, like the other reported issue, it's happening when a Cover Block is inside content as well.

I recommend the user to use another block (Media and Text), and the issue was resolved.

@kathrynwp
Copy link

@renatho
Copy link
Contributor

renatho commented Oct 17, 2024

This could be closed after: #66093

@getdave
Copy link
Contributor

getdave commented Nov 27, 2024

I tested recently and placing Nav inside a Cover block in the header means that any submenus will be hidden underneath the main body content. Changing overflow to visible on Cover seems to resolve this

Image

@getdave getdave changed the title Cover block: Cover block in content body overlaps mobile menu overlay Cover block in content body overlaps mobile menu overlay Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Cover Affects the Cover Block - used to display content laid over a background image [Block] Navigation Affects the Navigation Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

6 participants