Skip to content

Commit 58f62cf

Browse files
akasunilakasunilaaronrobertshaw
authored
Term Description: Add border block support (#63630)
* 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]>
1 parent 777ebc1 commit 58f62cf

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

packages/block-library/src/term-description/block.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@
4040
},
4141
"interactivity": {
4242
"clientNavigation": true
43+
},
44+
"__experimentalBorder": {
45+
"radius": true,
46+
"color": true,
47+
"width": true,
48+
"style": true,
49+
"__experimentalDefaultControls": {
50+
"radius": true,
51+
"color": true,
52+
"width": true,
53+
"style": true
54+
}
4355
}
4456
}
4557
}

packages/block-library/src/term-description/style.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Lowest specificity on wrapper margins to avoid overriding layout styles.
22
:where(.wp-block-term-description) {
3+
// This block has customizable padding, border-box makes that more predictable.
4+
box-sizing: border-box;
35
margin-top: var(--wp--style--block-gap);
46
margin-bottom: var(--wp--style--block-gap);
57
}

0 commit comments

Comments
 (0)