From 2436169504eae1e4dd67a28e6437b464190185ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petter=20Walb=C3=B8=20Johnsg=C3=A5rd?= Date: Tue, 29 Aug 2023 18:39:49 +0200 Subject: [PATCH] PaletteEdit: Fix component height (#54000) * PaletteEdit: Fix item height * Update CHANGELOG.md --- packages/components/CHANGELOG.md | 1 + packages/components/src/palette-edit/styles.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 4017491e46de6..eb52028535f89 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -11,6 +11,7 @@ ### Bug Fix - `SandBox`: Fix the cleanup method in useEffect ([#53796](https://github.com/WordPress/gutenberg/pull/53796)). +- `PaletteEdit`: Fix the height of the `PaletteItems`. Don't rely on styles only present in the block editor ([#54000](https://github.com/WordPress/gutenberg/pull/54000)). ### Internal diff --git a/packages/components/src/palette-edit/styles.js b/packages/components/src/palette-edit/styles.js index e04aa1840028f..72e6bff97e4a2 100644 --- a/packages/components/src/palette-edit/styles.js +++ b/packages/components/src/palette-edit/styles.js @@ -42,7 +42,6 @@ export const NameInputControl = styled( InputControl )` export const PaletteItem = styled( View )` padding: 3px 0 3px ${ space( 3 ) }; - height: calc( 40px - ${ CONFIG.borderWidth } ); border: 1px solid ${ CONFIG.surfaceBorderColor }; border-bottom-color: transparent; &:first-of-type {