Skip to content

Conversation

@mirka
Copy link
Member

@mirka mirka commented Dec 10, 2025

What?

Closes #42788

Removes the workaround for unifying control label line-heights in ToolsPanel.

Why?

I can no longer reproduce the original issue that motivated the workaround.

Testing Instructions

Go to a Typography tools panel in the editor, and show the Appearance and Letter Spacing controls next to each other.

You could also try rendering an InputControl-based component and a BaseControl-based component next to each other in Storybook.

Screenshots or screencast

No alignment issues even after removing the workaround. (Here's what the original misalignment looked like.)

Typography tools panel

Some components rendered next to each other in Storybook:

Some controls next to each other

@mirka mirka self-assigned this Dec 10, 2025
@mirka mirka requested a review from ajitbohra as a code owner December 10, 2025 19:20
@mirka mirka added [Type] Code Quality Issues or PRs that relate to code quality [Package] Components /packages/components labels Dec 10, 2025
@github-actions
Copy link

github-actions bot commented Dec 10, 2025

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: mirka <[email protected]>
Co-authored-by: aduth <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
Co-authored-by: youknowriad <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Member

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Wonder if #37844 was part of the fix here? Curious that it removed the other compatibility styles except the line-height.

Copy link
Contributor

@aaronrobertshaw aaronrobertshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM also.

Thanks for cleaning this up @mirka 👍

Screenshot 2025-12-10 at 2 27 46 pm

@mirka mirka merged commit 1191486 into trunk Dec 11, 2025
37 checks passed
@mirka mirka deleted the remove-tools-panel-workaround branch December 11, 2025 12:11
@github-actions github-actions bot added this to the Gutenberg 22.4 milestone Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Components /packages/components [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

InputControl: Fix LabelWrapper line-height inconsistency

4 participants