-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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: Reduce z-index for inner blocks container #49943
Conversation
Co-authored-by: Andrew Serong <14988353+andrewserong@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fix @aaronrobertshaw!
This is all testing nicely and fixes the bug for me:
2023-04-20.11.46.28.mp4
✅ Placeholder state buttons all work correctly
✅ Borders still behave as on trunk
✅ Child blocks are still selectable while the Cover block is selected
LGTM! ✨
Size Change: -12 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This is part of a larger pull request to fix z-index issues.
Is that right, or is copilot dreaming? 😅
Copilot was dreaming, I might remove that part of the summary to avoid confusion down the line. |
Flaky tests detected in f13811b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4749612383
|
Fixes: #49939
What?
Restores the original z-index style values for the Cover block's inner blocks container.
🤖 Generated by Copilot at cfec9b3
Reduced z-index values for cover block elements in
_z-index.scss
to prevent overlaps with other block editor elements.🤖 Generated by Copilot at cfec9b3
Why?
The higher z-index caused the inner blocks to appear above things like sticky groups, headers, etc.
How?
The need for the higher z-index was already solved via disabling pointer events on the main block popover container and reenabling them on the child drag handle. This meant the z-index changes that landed in #41153 were no longer required.
Testing Instructions
Screenshots or screencast
Screen.Recording.2023-04-20.at.11.36.52.am.mp4