From 93288852a6389736b60c2dbcf7a84089959bf819 Mon Sep 17 00:00:00 2001 From: Jason Crist Date: Wed, 8 Dec 2021 15:41:29 -0500 Subject: [PATCH 1/2] Applied width:100% and border-box to input elements of post comment form. --- .../block-library/src/post-comments-form/style.scss | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/block-library/src/post-comments-form/style.scss b/packages/block-library/src/post-comments-form/style.scss index 43a6007424d35..3df620b80f9b8 100644 --- a/packages/block-library/src/post-comments-form/style.scss +++ b/packages/block-library/src/post-comments-form/style.scss @@ -41,13 +41,15 @@ padding: calc(0.667em + 2px); // The extra 2px is added to match outline buttons. } - .comment-form-comment textarea { - display: block; - box-sizing: border-box; - width: 100%; + .comment-form { + textarea, + input:not([type="submit"]):not([type="checkbox"]) { + display: block; + box-sizing: border-box; + width: 100%; + } } - .comment-form-comment, .comment-form-author, .comment-form-email, .comment-form-url { From 4a16b331490c858d18eeea8a37449c55d35d1686 Mon Sep 17 00:00:00 2001 From: Jason Crist Date: Wed, 8 Dec 2021 15:57:04 -0500 Subject: [PATCH 2/2] Applied the same element styles to post-comments block as was applied to post-comments-form block --- packages/block-library/src/post-comments/style.scss | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/block-library/src/post-comments/style.scss b/packages/block-library/src/post-comments/style.scss index 0cdfb9e093503..8f72ab3ebc855 100644 --- a/packages/block-library/src/post-comments/style.scss +++ b/packages/block-library/src/post-comments/style.scss @@ -64,9 +64,13 @@ } } - .comment-form-comment textarea { - box-sizing: border-box; - width: 100%; + .comment-form { + textarea, + input:not([type="submit"]):not([type="checkbox"]) { + display: block; + box-sizing: border-box; + width: 100%; + } } .comment-form-cookies-consent {