From 4372eb57b700160d5df6889af16506230cd0734c Mon Sep 17 00:00:00 2001 From: Rinkal Pagdar <92097119+rinkalpagdar@users.noreply.github.com> Date: Wed, 23 Oct 2024 11:38:55 +0530 Subject: [PATCH] Border support added to comments --- packages/block-library/src/comments/block.json | 12 ++++++++++++ packages/block-library/src/comments/style.scss | 3 +++ 2 files changed, 15 insertions(+) diff --git a/packages/block-library/src/comments/block.json b/packages/block-library/src/comments/block.json index b35ea3505c816f..ceb8f750c3472d 100644 --- a/packages/block-library/src/comments/block.json +++ b/packages/block-library/src/comments/block.json @@ -45,6 +45,18 @@ "__experimentalDefaultControls": { "fontSize": true } + }, + "__experimentalBorder": { + "radius": true, + "color": true, + "width": true, + "style": true, + "__experimentalDefaultControls": { + "radius": true, + "color": true, + "width": true, + "style": true + } } }, "editorStyle": "wp-block-comments-editor", diff --git a/packages/block-library/src/comments/style.scss b/packages/block-library/src/comments/style.scss index be8cf1e597f49f..139b909621e36b 100644 --- a/packages/block-library/src/comments/style.scss +++ b/packages/block-library/src/comments/style.scss @@ -146,3 +146,6 @@ :where(.wp-block-post-comments input[type="submit"]) { border: none; } +.wp-block-comments { + box-sizing: border-box; +} \ No newline at end of file