Skip to content

Commit

Permalink
Make custom color popover also automatically reposition
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Jun 29, 2022
1 parent f96e77f commit b1136e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/components/src/color-palette/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ export function CustomColorPickerDropdown( { isRenderedInSidebar, ...props } ) {
contentClassName="components-color-palette__custom-color-dropdown-content"
popoverProps={
isRenderedInSidebar
? { placement: 'left-start', offset: 20 }
? {
placement: 'left-start',
offset: 20,
__unstableShift: true,
}
: undefined
}
{ ...props }
Expand Down

0 comments on commit b1136e6

Please sign in to comment.