From 0faf4c5753726db970c8ff6edf7e6a07ddc4baa0 Mon Sep 17 00:00:00 2001 From: Rinkal Pagdar <92097119+rinkalpagdar@users.noreply.github.com> Date: Thu, 24 Oct 2024 18:02:35 +0530 Subject: [PATCH] Border support added to comments (#66354) * Border support added to comments * css lint fix Co-authored-by: rinkalpagdar --- .../block-library/src/comments/block.json | 24 ++++++++++++++++--- .../block-library/src/comments/style.scss | 5 +++- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/packages/block-library/src/comments/block.json b/packages/block-library/src/comments/block.json index b35ea3505c816..cbdf5b3725b84 100644 --- a/packages/block-library/src/comments/block.json +++ b/packages/block-library/src/comments/block.json @@ -17,7 +17,10 @@ } }, "supports": { - "align": [ "wide", "full" ], + "align": [ + "wide", + "full" + ], "html": false, "color": { "gradients": true, @@ -45,8 +48,23 @@ "__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", - "usesContext": [ "postId", "postType" ] -} + "usesContext": [ + "postId", + "postType" + ] +} \ No newline at end of file diff --git a/packages/block-library/src/comments/style.scss b/packages/block-library/src/comments/style.scss index be8cf1e597f49..081783db098ab 100644 --- a/packages/block-library/src/comments/style.scss +++ b/packages/block-library/src/comments/style.scss @@ -13,7 +13,6 @@ } /* end utility classes */ - .navigation { &::after { content: ""; @@ -146,3 +145,7 @@ :where(.wp-block-post-comments input[type="submit"]) { border: none; } + +.wp-block-comments { + box-sizing: border-box; +}