Skip to content

Commit

Permalink
Term Description: Add border block support (WordPress#63630)
Browse files Browse the repository at this point in the history
* Add border support to term description block

* Add box sizing style to term description block

Co-authored-by: akasunil <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
  • Loading branch information
3 people authored and carstingaxion committed Jul 18, 2024
1 parent 630843a commit a557814
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/block-library/src/term-description/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@
},
"interactivity": {
"clientNavigation": true
},
"__experimentalBorder": {
"radius": true,
"color": true,
"width": true,
"style": true,
"__experimentalDefaultControls": {
"radius": true,
"color": true,
"width": true,
"style": true
}
}
}
}
2 changes: 2 additions & 0 deletions packages/block-library/src/term-description/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Lowest specificity on wrapper margins to avoid overriding layout styles.
:where(.wp-block-term-description) {
// 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 a557814

Please sign in to comment.