-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Cover block with background image not working with style variation #66067
Copy link
Copy link
Closed
Labels
[Block] CoverAffects the Cover Block - used to display content laid over a background imageAffects the Cover Block - used to display content laid over a background image[Priority] HighUsed to indicate top priority items that need quick attentionUsed to indicate top priority items that need quick attention[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
While working on TT5 and the latest Gutenberg, I noticed that some of our patterns were suddenly not working correctly.
I started checking the issue and apparently when you have a group block using section styles, and a cover block inside the image is not being shown. I saw that there were some recent changes to the z-index of the cover block, so it might be related.
Step-by-step reproduction instructions
- Install a theme that uses style variations on groups (Like Twenty Twenty-Five)
- Create a page.
- Add a group block, pick a different section style than default.
- Add a cover block inside the group block.
- Add a background image for the cover block.
- Confirm that the image is only displayed when the group block has the default variation. For all the others, the image won't show.
Screenshots, screen recording, code snippet
Screen.Recording.2024-10-11.at.16.11.03.mov
Environment info
- WordPress 6.7-beta2
- Gutenberg trunk
- TT5 trunk
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Block] CoverAffects the Cover Block - used to display content laid over a background imageAffects the Cover Block - used to display content laid over a background image[Priority] HighUsed to indicate top priority items that need quick attentionUsed to indicate top priority items that need quick attention[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.