Skip to content

Commit

Permalink
PaletteEdit: Fix component height (#54000)
Browse files Browse the repository at this point in the history
* PaletteEdit: Fix item height

* Update CHANGELOG.md
  • Loading branch information
Petter Walbø Johnsgård authored Aug 29, 2023
1 parent 2db2dc0 commit 2436169
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion packages/components/src/palette-edit/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2436169

Please sign in to comment.