-
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
Image Block: Enable crop action when image has a link #61470
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +60 B (0%) Total Size: 1.74 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.
Tested with Chrome and Safari on macOS, works as described:
The blue outline shows and the crop tools work.
Fixes #60928
What?
This PR fixes so that the crop tool can operate correctly when a image has a link.
Why?
This issue is a regression caused by the following process:
pointer-events: none
was added to the link element.How?
I disabled the pointer-event for the link element again. Since
pointer-events
can be overwritten by child elements, I appliedauto
to the crop area.This will allow the Image block itself to be selected correctly, and the crop tool should also work correctly.
Testing Instructions
Screenshots or screencast
The video below reproduces the testing procedure.
3d70ea0f248e0b231d4f30a4958095cc.mp4