-
Notifications
You must be signed in to change notification settings - Fork 4.5k
ImageSizeControl: Use margin-free style #70202
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
Conversation
Size Change: -73 B (0%) Total Size: 1.85 MB
ℹ️ View Unchanged
|
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. |
.block-editor-html-element-control, | ||
.block-editor-image-size-control { |
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.
These styles should be removed in the feature. See #65191
Flaky tests detected in 2c6de60. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/15233670448
|
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 @t-hamano!
Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Found while reviewing #70200
What?
Remove the margin styles from the
ImageSizeControl
component and apply a grid layout.Why?
The current implementation doesn't fit when this component is used inside the
ToolsPanelItem
component. This is because it resets margins as much as possible. As a result, as this comment says, we cannot maintain the layout within aToolsPanelItem
.Furthermore, the style based on the
em
units doesn't match Gutenberg's UI design.How?
.block-editor-image-size-control
CSS class to the root of the component.Testing Instructions
Screenshots or screencast
The visual change is subtle, but all spacing is now standardized to 16px.