Skip to content

Commit

Permalink
Disable resize on popover instead of hacky CSS snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Sep 5, 2023
1 parent a84a11c commit c7a3e6c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions packages/components/src/color-palette/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export function CustomColorPickerDropdown( {
const popoverProps = useMemo< DropdownProps[ 'popoverProps' ] >(
() => ( {
shift: true,
resize: false,
...( isRenderedInSidebar
? {
// When in the sidebar: open to the left (stacking),
Expand Down
4 changes: 0 additions & 4 deletions packages/components/src/color-picker/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ export const ColorfulWrapper = styled.div`
width: 216px;
.components-popover__content:has( & ) {
overflow: visible !important;
}
.react-colorful {
display: flex;
flex-direction: column;
Expand Down

0 comments on commit c7a3e6c

Please sign in to comment.