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

TextControl, TextareaControl: Add flag to remove bottom margin #43782

Merged
merged 3 commits into from
Sep 1, 2022

Conversation

mirka
Copy link
Member

@mirka mirka commented Sep 1, 2022

Part of #38730

What?

Adds a __nextHasNoMarginBottom prop to remove the bottom margins.

Why?

Better reusability.

How?

Passes the prop through to BaseControl.

Testing Instructions

npm run storybook:dev and check the stories for TextControl and TextareaControl.

@mirka mirka added the [Package] Components /packages/components label Sep 1, 2022
@mirka mirka requested a review from ajitbohra as a code owner September 1, 2022 15:25
@mirka mirka self-assigned this Sep 1, 2022
@mirka mirka mentioned this pull request Sep 1, 2022
49 tasks
@mirka mirka requested review from ciampo, walbo and chad1008 September 1, 2022 15:27
Copy link
Member

@walbo walbo left a comment

Choose a reason for hiding this comment

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

Nice! Tested and works as expected 🚢

@mirka mirka merged commit 95f71ed into trunk Sep 1, 2022
@mirka mirka deleted the remove-margin branch September 1, 2022 19:05
@github-actions github-actions bot added this to the Gutenberg 14.1 milestone Sep 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants