-
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
Add preset for padding and use it in the UI controls #23176
Conversation
Size Change: -276 B (0%) Total Size: 1.12 MB
ℹ️ View Unchanged
|
@@ -131,6 +132,12 @@ export const SETTINGS_DEFAULTS = { | |||
{ slug: 'full', name: __( 'Full Size' ) }, | |||
], | |||
|
|||
padding: [ |
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.
cc @mapk @kjellr @jasmussen I'm still working on this one, but I thought I'd ping early. What do you think of these default values? Would you use a different combination?
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.
I'd go in multiples of 4 if we go with pixels or even another unit. I'm wondering if rem units might be better here.
As far as pixel values
small: 4 - nice
regular: 16
large: 32 - only large relative to body copy, though
Em units could also work well and more flexibly even if they are harder to understand. If so, maybe:
small: .5em
regular: 1em
large: 1.5em
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.
Thanks, Michael! I pushed those defaults. I also wanted to say that this PR is going to hibernate for a bit as there are some design and engineering issues we need to fix before being able to land it (so it's not going to be part of 5.5 -- sorry about the confusion!).
adce1ae
to
76c4daa
Compare
This reverts commit cf2685f. See conversation at #23177 (comment)
76c4daa
to
f9720d4
Compare
Implements #23111
This PR adds a new preset for padding that themes can use similar to how they use colors, font-sizes, and gradients.
TODO: