Tweak border control button to proper metrics and simpler action#53998
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
|
jasmussen
left a comment
There was a problem hiding this comment.
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
|
| <!-- 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.
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.
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