From afd4d376fe08fdd1825bc9ee6017952c1e744e37 Mon Sep 17 00:00:00 2001 From: Shail Mehta Date: Fri, 21 Feb 2025 15:03:24 +0530 Subject: [PATCH] Post Comments Count: Add Border Support (#68223) * Post Comments Count: Add Border Support Co-authored-by: shail-mehta Co-authored-by: carolinan --- .../block-library/src/post-comments-count/block.json | 9 ++++++++- .../block-library/src/post-comments-count/style.scss | 4 ++++ packages/block-library/src/style.scss | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 packages/block-library/src/post-comments-count/style.scss diff --git a/packages/block-library/src/post-comments-count/block.json b/packages/block-library/src/post-comments-count/block.json index 796e6e3830236..4b195a8c928e6 100644 --- a/packages/block-library/src/post-comments-count/block.json +++ b/packages/block-library/src/post-comments-count/block.json @@ -39,8 +39,15 @@ "fontSize": true } }, + "__experimentalBorder": { + "radius": true, + "color": true, + "width": true, + "style": true + }, "interactivity": { "clientNavigation": true } - } + }, + "style": "wp-block-post-comments-count" } diff --git a/packages/block-library/src/post-comments-count/style.scss b/packages/block-library/src/post-comments-count/style.scss new file mode 100644 index 0000000000000..c596ec200ab1f --- /dev/null +++ b/packages/block-library/src/post-comments-count/style.scss @@ -0,0 +1,4 @@ +.wp-block-post-comments-count { + // This block has customizable padding, border-box makes that more predictable. + box-sizing: border-box; +} diff --git a/packages/block-library/src/style.scss b/packages/block-library/src/style.scss index c61049c23151b..3c8b8e623cc4d 100644 --- a/packages/block-library/src/style.scss +++ b/packages/block-library/src/style.scss @@ -36,6 +36,7 @@ @import "./post-author/style.scss"; @import "./post-author-biography/style.scss"; @import "./post-comments-form/style.scss"; +@import "./post-comments-count/style.scss"; @import "./post-content/style.scss"; @import "./post-comments-link/style.scss"; @import "./post-date/style.scss";