From d413f8be97a2d106affc36cc981c994e7510b997 Mon Sep 17 00:00:00 2001 From: James Koster Date: Thu, 19 Oct 2023 14:48:47 +0100 Subject: [PATCH 1/4] Update InputControl and SelectControl default heights --- .../src/input-control/styles/input-control-styles.tsx | 4 ++-- .../src/select-control/styles/select-control-styles.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/components/src/input-control/styles/input-control-styles.tsx b/packages/components/src/input-control/styles/input-control-styles.tsx index 85331d85cd20e..e4f4c3664e1d9 100644 --- a/packages/components/src/input-control/styles/input-control-styles.tsx +++ b/packages/components/src/input-control/styles/input-control-styles.tsx @@ -149,9 +149,9 @@ export const getSizeConfig = ( { if ( ! __next40pxDefaultSize ) { sizes.default = { - height: 30, + height: 32, lineHeight: 1, - minHeight: 30, + minHeight: 32, paddingLeft: space( 2 ), paddingRight: space( 2 ), }; diff --git a/packages/components/src/select-control/styles/select-control-styles.ts b/packages/components/src/select-control/styles/select-control-styles.ts index 7d0ddb502abd7..d23c689e2901e 100644 --- a/packages/components/src/select-control/styles/select-control-styles.ts +++ b/packages/components/src/select-control/styles/select-control-styles.ts @@ -85,8 +85,8 @@ const sizeStyles = ( { if ( ! __next40pxDefaultSize ) { sizes.default = { - height: 30, - minHeight: 30, + height: 32, + minHeight: 32, paddingTop: 0, paddingBottom: 0, }; From 7e563e2298dd9dc7602a2eae168fbbcd47a9f8b5 Mon Sep 17 00:00:00 2001 From: James Koster Date: Fri, 20 Oct 2023 10:18:22 +0100 Subject: [PATCH 2/4] Update changelog --- packages/components/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 595f085648c42..7616ee6d7de06 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -13,6 +13,7 @@ - `GradientPicker`: remove overflow styles and padding from `ColorPicker` popovers ([#55265](https://github.com/WordPress/gutenberg/pull/55265)). - `Tabs`: Expose via private APIs ([#55327](https://github.com/WordPress/gutenberg/pull/55327)). - `ColorPalette`/`ToggleGroupControl/ToggleGroupControlOptionBase`: add `type="button"` attribute to native `