-
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
ColorPalette: Prevent overflow of custom color button background #66152
Conversation
Size Change: +21 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
8b69bdf
to
3439858
Compare
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
LGTM 👍 🚀
Just left a minor suggestion to make our intent with positioning clearer.
Flaky tests detected in 3d2b24d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11381692387
|
…dPress#66152) * ColorPalette: Prevent overflow of custom color button background * Update changelog * Use variable instead of hardcoded value * Update packages/components/src/color-palette/style.scss Co-authored-by: Marco Ciampini <[email protected]> * Fix changelog entry --------- Co-authored-by: t-hamano <[email protected]> Co-authored-by: tyxla <[email protected]> Co-authored-by: ciampo <[email protected]>
What?
This PR fixes two issues with the custom color buttons in the color palette buttons:
Why? / How?
As for the corner overflow, it became more noticeable after the radius value was changed from 2px to 4px in #64368.
As for the overlap with the border, I think it looks more natural to shift it by 1px to avoid overlapping.
Testing Instructions
Visit http://localhost:50240/?path=/docs/components-colorpalette--docs and check the corners of the component.
Screenshots or screencast
Before
After