diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 165cdff2902e91..fef0bc93de3c0f 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -572,7 +572,7 @@ Post terms. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages - **Name:** core/post-terms - **Category:** theme -- **Supports:** color (background, gradients, link, text), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** prefix, separator, suffix, term, textAlign ## Post Title diff --git a/packages/block-library/src/post-terms/block.json b/packages/block-library/src/post-terms/block.json index 26f3915d5b0e04..e14f96170ca88c 100644 --- a/packages/block-library/src/post-terms/block.json +++ b/packages/block-library/src/post-terms/block.json @@ -38,6 +38,10 @@ "link": true } }, + "spacing": { + "margin": true, + "padding": true + }, "typography": { "fontSize": true, "lineHeight": true, diff --git a/packages/block-library/src/post-terms/style.scss b/packages/block-library/src/post-terms/style.scss index e447f1fd6b60d6..c40d60e94fe569 100644 --- a/packages/block-library/src/post-terms/style.scss +++ b/packages/block-library/src/post-terms/style.scss @@ -1,3 +1,8 @@ -.wp-block-post-terms__separator { - white-space: pre-wrap; +.wp-block-post-terms { + // This block has customizable padding, border-box makes that more predictable. + box-sizing: border-box; + + .wp-block-post-terms__separator { + white-space: pre-wrap; + } }