-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Full Site Editing: Add a Site Logo block (#18811)
* Add a site logo block 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. * show a preview while the image uploads * change the block icon * show an inline error message in the site logo block * hide the error when a file is successful * use mediaflow to replace the image in the logo block * fix typo in dismissible prop * update the entity fetching mechanism * use lightBlockWrapper flag * fix image resizing * match the front/back end markup * fix alignment in the BlockControls * fix alignment in the BlockControls * uopdate icon * simplify code * Hide the spinner when the site logo has loaded * Use the real url for the site logo * remove dead code * remove unused CSS * combine the useSelect calls * pass an empty array to useSelect to stop it firing on every render * Linter fixes * add fixtures for the site-logo block * remove unused code * fix for linter
- Loading branch information
Showing
15 changed files
with
607 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "core/site-logo", | ||
"category": "layout", | ||
"attributes": { | ||
"align": { | ||
"type": "string" | ||
}, | ||
"width": { | ||
"type": "number" | ||
} | ||
}, | ||
"supports": { | ||
"html": false, | ||
"lightBlockWrapper": true | ||
} | ||
} |
Oops, something went wrong.