-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Make the Site Logo block placeholder state smaller #48218
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
Conversation
Size Change: +2 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in 00a506d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4207691140
|
The whole 60px x 60px placeholder should probably be entirely the upload button when selected, instead of a hybrid. Though that should be a separate effort imo. |
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 commented on the issue that we might want a more flexible solution here in the long run, but the reduction in size generally seems fine.
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 to me 👍
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.
The whole 60px x 60px placeholder should probably be entirely the upload button when selected, instead of a hybrid. Though that should be a separate effort imo.
Understood, we can follow up on this point if necessary 👍 Performance test failures will be resolved by rebasing with the latest trunk.
* Change site logo placeholder to 80x80 * Use 60px instead
I just cherry-picked this PR to the wp/6.2 branch to get it included in the next release: 28616a3 |
What?
Closes #48217 by making the Site Logo block's placeholder state smaller — from 120px by 120px to 60px by 60px.
Why?
The original intent for
120px
was to match the default image width that is applied when an image is used as the logo. But as a 1:1 ratio, 120px by 120px does not represent a common logo height, and it distorts the vertical spacing of header patterns (causing substantial vertical shift when an image is applied).Maintaining a 1:1 is important as it helps to differentiate the site logo block from other image placeholders.
The current method for getting around this is setting the width within the block's attributes, although then the applied image will only render at 60px wide.
How?
SCSS change.
Testing Instructions
Screenshots or screencast
Current:
Proposed: