Skip to content
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

InputControl: Fix incorrect size prop passing to Text #42793

Merged
merged 3 commits into from
Aug 1, 2022

Conversation

mirka
Copy link
Member

@mirka mirka commented Jul 29, 2022

What?

Removes the erroneous passing down of a size prop, which was resulting in invalid CSS like font-size: default.

There are no visual changes, because that invalid font-size value was being overridden anyway in the CSS cascade.

Why?

Clean up.

How?

This bug has been there since the inception of InputControl (#22329). This PR is a simple fix — bug error prevention measures will be discussed separately in #42792.

Testing Instructions

  1. npm run storybook:dev
  2. Inspect the label element of an InputControl-based component and see that invalid CSS like font-size: default aren't being emitted.

@mirka mirka added [Type] Bug An existing feature does not function as intended [Package] Components /packages/components labels Jul 29, 2022
@mirka mirka self-assigned this Jul 29, 2022
@mirka mirka marked this pull request as ready for review July 29, 2022 02:28
@mirka mirka requested a review from ajitbohra as a code owner July 29, 2022 02:28
@mirka mirka requested review from ciampo and chad1008 July 29, 2022 02:28
Copy link
Contributor

@ciampo ciampo left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@mirka mirka merged commit f4dde1c into trunk Aug 1, 2022
@mirka mirka deleted the fix/text-prop-passing branch August 1, 2022 01:49
@github-actions github-actions bot added this to the Gutenberg 13.9 milestone Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Components /packages/components [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants