Skip to content

Commit

Permalink
Site Tagline: Add border block support (#63778)
Browse files Browse the repository at this point in the history
* Add border support to site tagline block

* Add box sizing style to site tagline block

* Display border control as optional

* Simplify the style for block

Co-authored-by: akasunil <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
  • Loading branch information
3 people authored Jul 30, 2024
1 parent ad9708d commit d5af45e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/block-library/src/site-tagline/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@
},
"interactivity": {
"clientNavigation": true
},
"__experimentalBorder": {
"radius": true,
"color": true,
"width": true,
"style": true
}
},
"editorStyle": "wp-block-site-tagline-editor"
"editorStyle": "wp-block-site-tagline-editor",
"style": "wp-block-site-tagline"
}
4 changes: 4 additions & 0 deletions packages/block-library/src/site-tagline/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.wp-block-site-tagline {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
}
1 change: 1 addition & 0 deletions packages/block-library/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
@import "./search/style.scss";
@import "./separator/style.scss";
@import "./site-logo/style.scss";
@import "./site-tagline/style.scss";
@import "./site-title/style.scss";
@import "./social-links/style.scss";
@import "./spacer/style.scss";
Expand Down

0 comments on commit d5af45e

Please sign in to comment.