-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ColorPalette: Make popover style consistent #43570
Conversation
@@ -31,20 +31,6 @@ | |||
} | |||
} | |||
|
|||
.components-dropdown__content.components-color-palette__custom-color-dropdown-content .components-popover__content { | |||
overflow: visible; |
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.
This was already being overridden by an inline style that sets overflow: auto
.
.react-colorful__saturation { | ||
border-top-right-radius: $radius-block-ui; | ||
border-top-left-radius: $radius-block-ui; | ||
} |
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.
Removed because this is only necessary when overflow: visible
.
Size Change: -117 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
cf8bdb9
to
048c509
Compare
Thanks for working on this, it's working as advertised for me. While we're here, it might be nice to make the panels the same width, assuming it's not too much work? If so, we can tackle it later :) |
It looks like the ColorPicker width is pretty tightly hardcoded, so let's tackle it separately 👍 (Also relevant: We're planning on reducing the circular swatch size from 28px to a consistent 20px soon.) |
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.
Understood. Approving since the original issue is fixed :)
Closes #41787
What?
Make the ColorPalette popover styles consistent with the other standard popovers. Namely, the border and the shadow styles.
Why?
For consistency.
How?
Remove overrides and use the
DropdownContentWrapper
to remove paddings.Testing Instructions
npm run storybook:dev
and see the ColorPalette story.Screenshots or screencast
Here's a screenshot of it side-by-side with the ColorGradientControl: