-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix block mover clickable area #67261
Conversation
Size Change: +10 B (0%) Total Size: 1.82 MB
ℹ️ View Unchanged
|
Flaky tests detected in b3ec803. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12003902485
|
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.
works a charm, thank you!
Before
2024-11-25.18.59.48.mp4
After
2024-11-25.19.00.04.mp4
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 Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @maximebj. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. 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. |
For the reasons stated above, and because of how widely used the
In principle, this seems like a good idea, given that |
What?
Fixes #67239
How?
Applies
overflow: hidden
to the mover<button>
so that the inner<svg>
element can't overlap other parts of the UI.We may also want to consider a fix fore this in the components package (cc @WordPress/gutenberg-components). It's a bit of a gray area since the mover buttons modify the general
Button
component quite a bit making the<button>
smaller than normal and moving the position of the<svg>
. I decided to try and get this one liner merged first, since it's a bad bug.(also, I wonder if the mover buttons should be using
ToolbarButton
instead of plain oldButton
)Testing Instructions
In trunk: The block moves down
In this PR: The block moves up as it should
Screenshots or screencast
Before
Kapture.2024-11-25.at.13.21.24.mp4
After
Kapture.2024-11-25.at.13.23.44.mp4