-
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
BaseControl: Fix VisualLabel styles #37747
Conversation
Size Change: +18 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
Out of curiosity, could you point out the offending code that introduced the regression in #25842 ? The changes overall LGTM, but I'd appreciate if folks who recently worked on ensuring label alignment also had a look (cc @andrewserong @aaronrobertshaw @mirka ) |
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.
With #25842, we started using styled-components, and #29550 removed styles files. So I guess regression was caused by both PRs together.
Gotcha! Thank you for the explanation.
I went ahead and left a comment while waiting for other folks to have a look too.
packages/components/src/base-control/styles/base-control-styles.js
Outdated
Show resolved
Hide resolved
Would you mind also adding a CHANGELOG entry for the components package? |
d500ba8
to
d6c080d
Compare
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 ping @ciampo and for the PR @Mamaduka!
This tests well for me, the 8px
bottom margin is consistent with the other label margins that I've looked at recently (e.g. the TextTransformControl), and I've tested this change with all the Typography controls that use the ToolsPanel and can't find any other obvious inconsistencies there.
I think the main other label margin that looks different is the SelectControl
's label which currently uses a 4px
bottom padding via the InputControl
component here. It's visible on the Preload dropdown in the Video block:
But I think we could look at improving the consistency there in a separate PR if we'd like to follow-up on that component. This change LGTM!
Thanks for testing, @andrewserong and @ciampo. |
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.
Looks like I was a few minutes too late to the party 🙂
This tested well for me. I couldn't spot any issues other than the minor difference with the SelectControl's label that @andrewserong mentioned. Everything else checked out for me in terms of various block supports' ToolsPanels and the Global Styles.
Thanks for putting this one together 👍
Description
PR adds missing styles for
BaseControl.VisualLabel
. It was regression after #25842.Resolves #35785.
How has this been tested?
I tested based on issue instructions:
Screenshots
Types of changes
Regression
Checklist:
*.native.js
files for terms that need renaming or removal).