Skip to content

Commit

Permalink
Term Description: Add border block support (#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 Jul 18, 2024
1 parent 777ebc1 commit 58f62cf
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 58f62cf

Please sign in to comment.