-
Notifications
You must be signed in to change notification settings - Fork 4.7k
ColorPalette, GradientPicker: fix color picker popover positioning #42989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
f6ce296
1e9978b
be50c30
72d8b65
e49a463
c0cf5d4
5f2b58e
b984d33
3371ca5
c3fc778
e107ec9
ecf677b
f731cf2
559bb93
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,11 +82,9 @@ function GradientColorPickerDropdown( { | |
| const result = { | ||
| className: | ||
| 'components-custom-gradient-picker__color-picker-popover', | ||
| placement: 'top', | ||
| }; | ||
| if ( isRenderedInSidebar ) { | ||
| result.anchorRef = gradientPickerDomRef; | ||
| result.placement = 'bottom-start'; | ||
| if ( ! isRenderedInSidebar ) { | ||
| result.placement = 'top'; | ||
|
||
| } | ||
| return result; | ||
| }, [ gradientPickerDomRef, isRenderedInSidebar ] ); | ||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.