From 2264393bdba3681ac127f9bf7017041977457292 Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Fri, 2 Sep 2022 00:20:24 +0900 Subject: [PATCH 1/3] TextControl: Add flag to remove bottom margin --- packages/components/src/text-control/index.tsx | 2 ++ packages/components/src/text-control/types.ts | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/components/src/text-control/index.tsx b/packages/components/src/text-control/index.tsx index 7634e751d19ecb..9fbe02707f58d9 100644 --- a/packages/components/src/text-control/index.tsx +++ b/packages/components/src/text-control/index.tsx @@ -21,6 +21,7 @@ function UnforwardedTextControl( ref: ForwardedRef< HTMLInputElement > ) { const { + __nextHasNoMarginBottom, label, hideLabelFromVision, value, @@ -37,6 +38,7 @@ function UnforwardedTextControl( return ( & { /** * A function that receives the value of the input. From 90db36d9a187d3e0fcb841223cfa14177f9724ee Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Fri, 2 Sep 2022 00:21:40 +0900 Subject: [PATCH 2/3] TextareaControl: Add flag to remove margin --- packages/components/src/textarea-control/index.tsx | 2 ++ packages/components/src/textarea-control/types.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/components/src/textarea-control/index.tsx b/packages/components/src/textarea-control/index.tsx index 10b79f8188709e..92374d67fd5af9 100644 --- a/packages/components/src/textarea-control/index.tsx +++ b/packages/components/src/textarea-control/index.tsx @@ -43,6 +43,7 @@ export function TextareaControl( props: WordPressComponentProps< TextareaControlProps, 'textarea', false > ) { const { + __nextHasNoMarginBottom, label, hideLabelFromVision, value, @@ -59,6 +60,7 @@ export function TextareaControl( return ( & { /** * A function that receives the new value of the textarea each time it From eb743a8f6708eff83a3fcd1e34b427bcfaed2a01 Mon Sep 17 00:00:00 2001 From: Lena Morita Date: Fri, 2 Sep 2022 00:26:14 +0900 Subject: [PATCH 3/3] Add changelog --- packages/components/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 4771e00ab349e7..47159ec62d079d 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -11,6 +11,7 @@ - `ToggleControl`: Add `__nextHasNoMargin` prop for opting into the new margin-free styles ([#43717](https://github.com/WordPress/gutenberg/pull/43717)). - `CheckboxControl`: Add `__nextHasNoMargin` prop for opting into the new margin-free styles ([#43720](https://github.com/WordPress/gutenberg/pull/43720)). +- `TextControl`, `TextareaControl`: Add `__nextHasNoMargin` prop for opting into the new margin-free styles ([#43782](https://github.com/WordPress/gutenberg/pull/43782)). - `RangeControl`: Tweak dark gray marking color to be consistent with the grays in `@wordpress/base-styles` ([#43773](https://github.com/WordPress/gutenberg/pull/43773)). - `UnitControl`: Tweak unit dropdown color to be consistent with the grays in `@wordpress/base-styles` ([#43773](https://github.com/WordPress/gutenberg/pull/43773)). - `CardHeader`, `CardBody`, `CardFooter`: Tweak `isShady` background colors to be consistent with the grays in `@wordpress/base-styles` ([#43719](https://github.com/WordPress/gutenberg/pull/43719)).