-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
TextareaControl: add new opt-in prop #46559
Conversation
Size Change: +10 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks! 🚢
packages/components/CHANGELOG.md
Outdated
@@ -31,6 +31,7 @@ | |||
- Lighten the border color on control components ([#46252](https://github.com/WordPress/gutenberg/pull/46252)). | |||
- `Popover`: Prevent unnecessary paint when scrolling by using transform instead of top/left positionning ([#46187](https://github.com/WordPress/gutenberg/pull/46187)). | |||
- `CircularOptionPicker`: Prevent unecessary paint on hover ([#46197](https://github.com/WordPress/gutenberg/pull/46197)). | |||
- `Disabled`: Replace bottom margin overrides with `__nextHasNoMarginBottom` ([#46559](https://github.com/WordPress/gutenberg/pull/46559)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We generally don't need to add changelogs for Storybook changes because they don't affect package consumers, and the public Storybook is not versioned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to know, thank you! I'll remove it from the PR before merging.
This reverts commit 95562a919a9e8c84b40e394c471a738a12b01c50.
ef9d449
to
709e31f
Compare
What?
Adding new opt-in prop
__nextHasNoMarginBottom
to usages ofTextareaControl
in the Gutenberg codebase.Why?
Part of this project: #38730
The tl;dr is
BaseControl
has amargin-bottom
which makes it difficult to reuse and results in inconsistent use.How?
By adding the prop
__nextHasNoMarginBottom
.Additional Notes
The prop needs to be added to the story for the
Disabled
component which is why this PR includes updates to that component for all threeSelectControl
,TextControl
, andTextareaControl
. This is so future warnings of the margin-bottom deprecation won't show up in its default state.If this PR is merged first, #46448 will need to be rebased to include this change.
Testing Instructions
Test in the Block Editor (a Post)
PostExcerpt
Quick steps: the next three (cover, image, media & text blocks) all check for the image alt text areas. Continue for step-by-step or jump down to Site Editor steps after testing these three
CoverInspector
Image
MediaTextEdt
Test in the Site Editor
NavigationLinkEdit & NavigationSubmenuEdit
CustomCSSControl
Test in the Storybook
Disabled