From 63d83dd80023223f574ac93200c6d73cc19ba97e Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Tue, 11 Oct 2022 10:18:41 +0900 Subject: [PATCH] Tag Cloud Block: Prevent block support styles and additional CSS classes from being printed twice (#44439) * Tag Cloud Block: Prevent block support styles and additional CSS classes from being printed twice * Fix Typo Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> * Fix Typo Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> * Use new option * move the box-sizing: border-box to the style.scss file Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> --- packages/block-library/src/tag-cloud/edit.js | 2 +- packages/block-library/src/tag-cloud/style.scss | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/tag-cloud/edit.js b/packages/block-library/src/tag-cloud/edit.js index f35160dfe1bf6e..8cb286630d8eb7 100644 --- a/packages/block-library/src/tag-cloud/edit.js +++ b/packages/block-library/src/tag-cloud/edit.js @@ -168,7 +168,7 @@ function TagCloudEdit( { attributes, setAttributes, taxonomies } ) { { inspectorControls }
diff --git a/packages/block-library/src/tag-cloud/style.scss b/packages/block-library/src/tag-cloud/style.scss index 6936b7af66485d..5fb04840de1517 100644 --- a/packages/block-library/src/tag-cloud/style.scss +++ b/packages/block-library/src/tag-cloud/style.scss @@ -1,4 +1,7 @@ .wp-block-tag-cloud { + // This block has customizable padding, border-box makes that more predictable. + box-sizing: border-box; + &.aligncenter { text-align: center; justify-content: center;