-
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
Gallery v1: Allow clicks within replace media placeholder state #36804
Gallery v1: Allow clicks within replace media placeholder state #36804
Conversation
Size Change: -8 B (0%) Total Size: 1.1 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.
This tested well for me. Should this be cherry picked for 5.9 also ?
Yes, I believe it should. I've just added the Backport to WP Beta/RC label 👍. Thanks for testing, Glen! |
Description
While testing #36191, I noticed that if I use the replace media flow in the v1 Gallery block, then the buttons in the image's placeholder state cannot be clicked. This appears to be because the
::before
content (withz-index: 1
) is preventing clicks to the elements beneath it. The fix is to addpointer-events: none
to this content so that it doesn't prevent clicks from reaching the target elements.How has this been tested?
To use the v1 version of the Gallery block, set
use_balanceTags
option to1
for your test site. If you're usingwp-env
, you can do so by running:Add a gallery block to a post or page and select a few images. Click on one of the images and select the button to replace the image. With this PR applied, you should be able to replace the image.
Screenshots
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).