-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 Letter-spacing and enable this for site title and site tagline #31118
Conversation
Size Change: +298 B (0%) Total Size: 1.86 MB
ℹ️ View Unchanged
|
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 @carolinan, this is looking good and working well in my testing! 👍 From a technical point of view, this LGTM.
It might be nice to get a designer to have a quick look at this and maybe help polish it a bit -- I think I saw a convo between @mtias, @jasmussen, and @jameskoster the other day about styling typography related controls. (One point I remember was that we now have some controls that do have a 'Reset' button while others don't, and it seems a bit arbitrary.) For reference, here's an issue with a few mockups: #27331.
Thanks for the ping. Yes, we really need a progressive-reveal system as described in #27331, especially important for somewhat exotic properties like this one which nevertheless need to be available: The prominence in that mockup also weights the letter spacing as "half a column", rather than a full row, but that does seem like it's made easier by the fact that simply unchecking the property in that mockup also serves as a reset. What is the closest we can get to that mockup, in absence of the progressive-reveal system? |
packages/block-editor/src/components/letter-spacing-control/index.js
Outdated
Show resolved
Hide resolved
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 @carolinan, looking pretty good now! I have one more suggestion 😄
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.
Thank, LGTM!
|
Awaiting #31782 |
@carolinan Are you sure you want to wait for #31782? It's very considerate of you, but I don't think it's a strict requirement -- that PR is still only in draft state, so it might take a while before it reaches approval state, and it might become progressively harder to rebase this PR. |
I think it would be best to proceed without #31782. That PR will take a long time to be ready - if it ever is. |
Hey @carolinan do you remember if it was a conscious decision to not add Letter spacing to the Global Styles typography panel? |
It was not, I don't think it even crossed my mind to add it there too :) |
Description
Adds a new letter-spacing control to the typography panel.
Enables the control for site title and site tagline blocks.
Partial for #30918, #30921
How has this been tested?
I have tested three blocks manually in the site editor and block editor:
Site title and tagline with the control.
Site title and paragraph with defaults declared in theme.json.
To enable letter-spacing in theme.json:
Screenshots
Block editor:
Site editor: ❓ Help wanted. I am not sure why the control looks different in the site editor.
Global styles:
Front:
Types of changes
New control
Checklist:
*.native.js
files for terms that need renaming or removal).