-
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
Tweak border control button to proper metrics and simpler action #53998
Conversation
Flaky tests detected in 544178b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6002642997
|
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.
Nice. I think in general we can improve reset buttons, and I'd love to just generally do a review of the color picker, although the color itself is a bit more legible, it's also fairly huge and a box within a box. Lots to do, but this is a good small step forward. Thankd!
Size Change: -17 B (0%) Total Size: 1.52 MB
ℹ️ View Unchanged
|
@@ -1,6 +1,7 @@ | |||
<!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. --> | |||
|
|||
## Unreleased | |||
- `BorderControl`: Apply proper metrics and simpler text ([#53998](https://github.com/WordPress/gutenberg/pull/53998)). |
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.
CHANGELOG entries should all go under a sub-section — ie. Enhancements
, Bug fix
, etc
We can tweak this in following PRs (eg. #54394)
@@ -180,10 +180,10 @@ export const borderControlStylePicker = css` | |||
|
|||
export const borderStyleButton = css` |
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.
Have you tried using the size="compact"
prop on the Button
component, instead of adding style overrrdes? That should render a 32x32 button
What?
Minor fix to adjust the reset and style buttons to fit within the updated metrics (40px and 32px) buttons—as detailed in #46734. Also uses the correct border-top color now.
Testing Instructions
Screenshots or screencast