Skip to content

Commit

Permalink
Post Excerpt: Add border block support (#64022)
Browse files Browse the repository at this point in the history
* Add border support to post excerpt block

* add box sizing style to excerpt block

Co-authored-by: akasunil <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
  • Loading branch information
3 people authored Jul 30, 2024
1 parent 55ddb6f commit ad9708d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/block-library/src/post-excerpt/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@
},
"interactivity": {
"clientNavigation": true
},
"__experimentalBorder": {
"radius": true,
"color": true,
"width": true,
"style": true,
"__experimentalDefaultControls": {
"radius": true,
"color": true,
"width": true,
"style": true
}
}
},
"editorStyle": "wp-block-post-excerpt-editor",
Expand Down
3 changes: 3 additions & 0 deletions packages/block-library/src/post-excerpt/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Lowest specificity on wrapper margins to avoid overriding layout styles.
:where(.wp-block-post-excerpt) {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;

margin-top: var(--wp--style--block-gap);
margin-bottom: var(--wp--style--block-gap);
}
Expand Down

0 comments on commit ad9708d

Please sign in to comment.