Skip to content

DimensionControl: Add __next40pxDefaultSize prop#56805

Merged
brookewp merged 2 commits intotrunkfrom
add/40px-size-dimensioncontrol
Dec 7, 2023
Merged

DimensionControl: Add __next40pxDefaultSize prop#56805
brookewp merged 2 commits intotrunkfrom
add/40px-size-dimensioncontrol

Conversation

@brookewp
Copy link
Copy Markdown
Contributor

@brookewp brookewp commented Dec 6, 2023

Part of #46741

What?

Add a new opt-in prop __next40pxDefaultSize to DimensionControl, following the plan outlined in above mentioned PR.

Why?

For more consistency in styling.

How?

A new, temporary __next40pxDefaultSize prop. When the prop is set to true, the inputs will have a height of 40px.

Testing Instructions

In Storybook:

  1. npm run storybook:dev
  2. Set __next40pxDefaultSize to true for DimensionControl
  3. The input height of the component should now be 40px

In the editor

Smoke test the component in the editor; DimensionControl shouldn't have any visible changes for now.

@brookewp brookewp added [Type] Enhancement A suggestion for improvement. [Package] Components /packages/components labels Dec 6, 2023
@brookewp brookewp requested a review from a team December 6, 2023 00:25
@brookewp brookewp self-assigned this Dec 6, 2023
@brookewp brookewp requested a review from ajitbohra as a code owner December 6, 2023 00:25
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 6, 2023

Flaky tests detected in 33de2a9.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7122906844
📝 Reported issues:

Copy link
Copy Markdown
Contributor

@chad1008 chad1008 left a comment

Choose a reason for hiding this comment

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

LGTM 🚀 🚢

@brookewp brookewp force-pushed the add/40px-size-dimensioncontrol branch from 6190dce to 33de2a9 Compare December 7, 2023 02:16
@brookewp brookewp enabled auto-merge (squash) December 7, 2023 02:16
@brookewp brookewp merged commit 550966a into trunk Dec 7, 2023
@brookewp brookewp deleted the add/40px-size-dimensioncontrol branch December 7, 2023 03:06
@github-actions github-actions bot added this to the Gutenberg 17.3 milestone Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Components /packages/components [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants