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 ) |
ciampo
left a comment
There was a problem hiding this comment.
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.
|
Would you mind also adding a CHANGELOG entry for the components package? |
d500ba8 to
d6c080d
Compare
andrewserong
left a comment
There was a problem hiding this comment.
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. |
aaronrobertshaw
left a comment
There was a problem hiding this comment.
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.jsfiles for terms that need renaming or removal).