-
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
Polish Buttons block radius, and size. #28514
Conversation
Size Change: +35 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
06faffb
to
43c4864
Compare
This looks good. I've tested in a few themes and I don't see any issues. |
Is this PR still valid after the other changes in buttons styles like: #28485? |
Yes, it's still valid, but it needs a good rebase. The focus of this PR is to fix the border radius (roundness), which is a little off currently, and the size of a solid and outline button side by side, which is also off. But because it's a bit more of an "opinionated" PR, I'm not sure it's urgent to land. There's a teensy bit more risk associated with this one. |
43c4864
to
3f78961
Compare
Alright, this one is not for 5.7, but it might be good to land now post 5.7. CC: @WordPress/gutenberg-core |
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.
Looks good - thanks!
Buttons do not have the correct radius, and the solid button is smaller than the outline button. This PR fixes both. Before:
Note: the "space-between" effect is a separate bug, fixed in #28485
After:
Here's what changed:
2px solid
is the same as2px solid currentColor
, the latter is just easier to understand).I would very much like to retire the specific gray color for the solid button, but this has to be a separate global styles effort.
This PR needs a great deal of sanity checking especially from theme developers, as although the changes are small, they do affect shipping code.