-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post Comments Form: Fix layout quirks #40359
Conversation
Size Change: -249 B (0%) Total Size: 1.23 MB
ℹ️ View Unchanged
|
Note that even with this change, the inline comment form still doesn't look great. Off the top of my head, I'd say that:
Maybe a designer can help with these (by adding styling to The challenge is that this shouldn't preclude any styling done by the user in the Site Editor, or through a themes styling. This means that it would need to be somewhat generic. (E.g. the comment textarea width is currently determined by the existing comments width; it probably should not become fully independent of that.) |
62d40e1
to
bdef658
Compare
Thanks a lot @jffng! |
Cherry picked to the |
Co-authored-by: Jeff Ong <jonger4@gmail.com>
What?
Follow-up to #40268.
Why?
When using the Comments Query Loop block and Post Comments Form block in a template, the comments form is rendered inline in the position where the user clicked 'Reply' on the frontend. However, there are still some layout quirks, as seen below:
First and foremost, the 'Cancel reply' link is way to close to the 'Reply to admin' text.
Compare this e.g. to the Twenty Twenty One (TT1) theme:
(This is achieved by a simple flexbox-based styling of
comment-reply-title
.)How?
This PR attempts to fix them in a way that doesn't preclude any extra styling by themes.
For now, it only adds flexbox styling akin to TT1's to the Post Comments Form's
style.scss
.Testing Instructions
Screenshots or screencast