From 7d597ff0a8c313554b8df8175674d5d85eaa6fd6 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Fri, 22 Oct 2021 14:40:12 -0400 Subject: [PATCH 1/3] Clear the margin at the top of the comment reply title --- packages/block-library/src/post-comments/style.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/block-library/src/post-comments/style.scss b/packages/block-library/src/post-comments/style.scss index fc6138d46954c9..8347763085c92d 100644 --- a/packages/block-library/src/post-comments/style.scss +++ b/packages/block-library/src/post-comments/style.scss @@ -1,4 +1,8 @@ .wp-block-post-comments { + .comment-reply-title { + margin-top: 0; + } + .commentlist { list-style: none; margin: 0; From 8eaf0645f27bdcd89b51e8a34921531d5674fd93 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Fri, 22 Oct 2021 14:48:27 -0400 Subject: [PATCH 2/3] Remove top margin from nocomments as well. --- packages/block-library/src/post-comments/style.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/post-comments/style.scss b/packages/block-library/src/post-comments/style.scss index 8347763085c92d..00d47752a2beaf 100644 --- a/packages/block-library/src/post-comments/style.scss +++ b/packages/block-library/src/post-comments/style.scss @@ -1,5 +1,6 @@ .wp-block-post-comments { - .comment-reply-title { + .comment-reply-title, + .nocomments { margin-top: 0; } From 2ea2c06db63e05244392803f72b20dde9f482b32 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Tue, 26 Oct 2021 14:44:25 -0400 Subject: [PATCH 3/3] Target just the first h3. --- packages/block-library/src/post-comments/style.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/post-comments/style.scss b/packages/block-library/src/post-comments/style.scss index 00d47752a2beaf..0cdfb9e093503d 100644 --- a/packages/block-library/src/post-comments/style.scss +++ b/packages/block-library/src/post-comments/style.scss @@ -1,6 +1,6 @@ .wp-block-post-comments { - .comment-reply-title, - .nocomments { + // Remove extraneous top padding added to the first heading of the block. + > h3:first-of-type { margin-top: 0; }