-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fixes the width on the circle color picker popover #27523
Conversation
Size Change: +20.9 kB (1%) Total Size: 1.21 MB
ℹ️ View Unchanged
|
@@ -4,6 +4,7 @@ $color-palette-circle-spacing: 12px; | |||
.components-circular-option-picker { | |||
display: inline-block; | |||
width: 100%; | |||
min-width: 244px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm this fixes things, but I wonder where 244px
came from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we have a set width for these... they change from one to another. So with this one, I made the width 244px + the additional popover padding which equates to 280px. And 280px is the same as the Sidebar Settings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats probably fine; It fixes the immediate problem.
That said, I worry this might look strange if there's only 2-3 color swatches; It could lead to some awkward whitespace.
Fixes #27522.
Sets a min-width on the circle color picker.
How has this been tested?
Locally.
Screenshots
BEFORE
AFTER
Types of changes
Non-breaking CSS changes.
Checklist: