Skip to content

Commit

Permalink
Site Logo: add padding and margin support (#43520)
Browse files Browse the repository at this point in the history
* Update DateTimePicker readme

* Add padding/margin support for Site Logo

* Alpha sort active supports

* Add box-sizing for frontend
  • Loading branch information
colorful-tones committed Sep 7, 2022
1 parent 999cd14 commit d209629
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Expand Up @@ -725,7 +725,7 @@ Display a graphic to represent this site. Update the block, and the changes appl

- **Name:** core/site-logo
- **Category:** theme
- **Supports:** align, color (~~background~~, ~~text~~), ~~alignWide~~, ~~html~~
- **Supports:** align, color (~~background~~, ~~text~~), spacing (margin, padding), ~~alignWide~~, ~~html~~
- **Attributes:** isLink, linkTarget, shouldSyncIcon, width

## Site Tagline
Expand Down
4 changes: 4 additions & 0 deletions packages/block-library/src/site-logo/block.json
Expand Up @@ -37,6 +37,10 @@
"__experimentalDuotone": "img, .components-placeholder__illustration, .components-placeholder::before",
"text": false,
"background": false
},
"spacing": {
"margin": true,
"padding": true
}
},
"styles": [
Expand Down
2 changes: 2 additions & 0 deletions packages/block-library/src/site-logo/style.scss
@@ -1,4 +1,6 @@
.wp-block-site-logo {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
line-height: 0;

a {
Expand Down

0 comments on commit d209629

Please sign in to comment.