Repository navigation
Full Site Editing: Add a Site Logo block - #18811
Conversation
|
Some quick feedback:
|
There was a problem hiding this comment.
I had to add this line to get templates working. Not sure what I'm doing wrong.
There was a problem hiding this comment.
I had to add this line to get templates working. Not sure what I'm doing wrong.
See also #18877. You may need to rebase.
There was a problem hiding this comment.
Is there a way to hook into notices without using compose?
|
Another round of testing. Here's what I found: Block logo
Uploading
Resizing:
Alignment
Duplicate
Edit as HTML
Reusable Block
Hopefully that is helpful. Sorry for the big ole list! 😬 |
There was a problem hiding this comment.
This is just to facilitate testing, we'll remove it before merging.
|
Awesome work fixing everything up y'all. This is looking really great. One last super minor thing: When you first add a logo block, the width dimension is not populated. You have to resize the logo for it to show. From then on, it stays visible: It's not a blocker, but it would be nice to show that dimension from the start. And that's it. Again, nice work on this one! |
|
Congrats on this one. Will draft a call for testing today so that we can get it out when appropriate. |
|
As indicated, this PR will also close #1851. What's the status here, @scruffian? |
|
Just waiting for a review |
|
@mtias @youknowriad what do you think about moving forward with this? I'll rebase it if you're on board... |
There was a problem hiding this comment.
Feels like there's a few things in common between this block and the image block. Not for this PR but it would be good to find a good way to share behavior.
There was a problem hiding this comment.
Yes, I have extracted this to another component, but I think it would be good to share this code somehow...
There was a problem hiding this comment.
Do you this icon can be added to @wordpress/icons or it's not generic enough?
There was a problem hiding this comment.
Happy to add it if you think there's value in it. Probably best to do it in a followup PR.
|
@paaljoachim I think I've addressed all the concerns above, so this is ready for another review :) |
|
A more unique icon and more integrated with the latest library and styles might help with consistency and identification. |
| stroke="black" | ||
| strokeWidth="1.5" | ||
| /> | ||
| <line |
There was a problem hiding this comment.
We don't have Line as a primitive. Maybe we should add it?
youknowriad
left a comment
There was a problem hiding this comment.
Left some comments, this block is very interesting, it highlights the fact that we lack good abstractions to manipulate images without reusing the entire image block. Not something to solve in this PR but I would love some thoughts/follow-ups on this.
youknowriad
left a comment
There was a problem hiding this comment.
I didn't test a lot but it looks good to me.




Props @pablinos who wrote most of the code.
Description
This adds a Site Logo block to the Full Site Editing experiment.
This uses some filters to non-destructively override the theme mod value when the experiment is enabled and the site logo setting has a value.
How has this been tested?
Screenshots
Known issues
If a non-admin triese to use this block they won't see anything.
Types of changes
New feature (non-breaking change which adds functionality)
Checklist: