Skip to content

Commit a7f569c

Browse files
authored
ColorPicker: fix layout overflow (#42992)
* ColorPicker: fix layout overflow * Move box=sizing reset to ColorfulWrapper component * CHANGELOG
1 parent 49e57d4 commit a7f569c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/components/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- `TextControl`, `TextareaControl`, `ToggleGroupControl`: Add `box-sizing` reset style ([#42889](https://github.com/WordPress/gutenberg/pull/42889)).
1313
- `Popover`: fix arrow placement and design ([#42874](https://github.com/WordPress/gutenberg/pull/42874/)).
1414
- `Popover`: fix minor glitch in arrow [#42903](https://github.com/WordPress/gutenberg/pull/42903)).
15+
- `ColorPicker`: fix layout overflow [#42992](https://github.com/WordPress/gutenberg/pull/42992)).
1516
- `ToolsPanel`: Constrain grid columns to 50% max-width ([#42795](https://github.com/WordPress/gutenberg/pull/42795)).
1617
- `Popover`: anchor correctly to parent node when no explicit anchor is passed ([#42971](https://github.com/WordPress/gutenberg/pull/42971)).
1718

packages/components/src/color-picker/styles.ts

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import InnerSelectControl from '../select-control';
1111
import InnerRangeControl from '../range-control';
1212
import { StyledField } from '../base-control/styles/base-control-styles';
1313
import { space } from '../ui/utils/space';
14+
import { boxSizingReset } from '../utils';
1415
import Button from '../button';
1516
import { Flex } from '../flex';
1617
import { HStack } from '../h-stack';
@@ -70,6 +71,8 @@ export const ColorInputWrapper = styled( Flex )`
7071
`;
7172

7273
export const ColorfulWrapper = styled.div`
74+
${ boxSizingReset };
75+
7376
width: 216px;
7477
7578
.react-colorful {

0 commit comments

Comments
 (0)