-
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 the Site Logo block. #30526
Polish the Site Logo block. #30526
Conversation
Works for me. I wonder if the description can be simplified a little, taking cues from the Site Title block?
Perhaps for devices or scenarios where dragging doesn't work so well? |
Doi, of course. I'll add it back and see what I can do. Probably if it's unset by default, it will be more accurate to the default size. |
Hey Joen. It looks like I am not able to build a special Gutenberg plugin by going to the Checks tab -> looking in the left sidebar for Gutenberg Build. It would be nice to see a screenshot (or to test it). I checked the code. Sidebar description says this: That feels like a good and clear description. |
Size Change: +1.06 kB (0%) Total Size: 1.42 MB
ℹ️ View Unchanged
|
In terms of the changes proposed in the OP this works well. There's something about that placeholder state though... In the future I wonder if it wouldn't be better to programatically generate a "logo" and insert that. Consequently the thing a user sees after inserting the Site Logo block feels a bit more logo-ish. Does that make sense? Replacing it is just a case of using the already-familiar image tools. |
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.
Yes. Sorry I forgot to write that comment as a review!
I do love the idea that we can auto-generate a logo based on site properties. Want to ticket it, or at least suggest it in a comment on #30406? Thanks for the review, I'm going to land this one. |
Does it have an upload media link? |
Yes, inside the media library. |
Of course..:) |
Description
This PR takes a stab at a few of the items from #30406. Specifically it:
I could use advice on the description in the sidebar, is it precise enough?
Note that for 2, I entirely removed the "Logo width" range control in the sidebar. It seemed duplicate compared to the control that exists in the canvas itself, and it was problematic insofar as it showed the image dimensions even when you hadn't explicitly set the width of the image at all (and was therefore subject to theme styles). Is there any reason to keep that control that I'm missing?
How has this been tested?
Test inserting a site logo, test setting it, and that it looks correct in editor and frontend.
Then try resizing the site logo and check that also looks good.
Checklist:
*.native.js
files for terms that need renaming or removal).