Skip to content

Commit

Permalink
Format Library: Text-color popover width to fit sidebar (#68881)
Browse files Browse the repository at this point in the history
Co-authored-by: shimotmk <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
  • Loading branch information
3 people authored Feb 27, 2025
1 parent 38610b0 commit 50d457e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/format-library/src/text-color/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
// Must equal $color-palette-circle-size from:
// @wordpress/components/src/circular-option-picker/style.scss
$swatch-size: 28px;
$swatch-gap: 12px;
$panelPadding: $grid-unit-20;

.format-library__inline-color-popover {

[role="tabpanel"] {
padding: 16px;
padding: $panelPadding;
width: ( $swatch-size * 6 ) + ( $swatch-gap * 5 ) + ( $panelPadding * 2 );
}
}

0 comments on commit 50d457e

Please sign in to comment.