Skip to content

Commit

Permalink
Fix post comment form input width (#37238)
Browse files Browse the repository at this point in the history
* Applied width:100% and border-box to input elements of post comment form.

* Applied the same element styles to post-comments block as was applied to post-comments-form block
  • Loading branch information
pbking authored and noisysocks committed Dec 13, 2021
1 parent d2ae308 commit 3016372
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
12 changes: 7 additions & 5 deletions packages/block-library/src/post-comments-form/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 7 additions & 3 deletions packages/block-library/src/post-comments/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3016372

Please sign in to comment.