Skip to content
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

Separate customizable blocks for comment form heading, "Replying to [...]", and "Cancel reply". #40320

Open
ClarusDignus opened this issue Apr 13, 2022 · 2 comments
Labels
[Block] Post Comments Form Affects the Comments Form Block [Type] Enhancement A suggestion for improvement.

Comments

@ClarusDignus
Copy link

comment-form-blocks

Comment form heading

The comment form heading should be a standard heading block.

"Replying to [...]"

"Replying to A WordPress Commenter" should be a separate block that can be set to be a paragraph or a heading.

If it's a paragraph, a standard heading block can be used for the comment form heading at the user's discretion.

If it's a heading, it serves the purpose of the comment form heading.

The text should be customizable in the block settings sidebar and use a variable for "A WordPress Commenter", i.e., the name of who's being replied to, which links to the comment being replied to, e.g., "Replying to %s" can be changed to "You're replying to %s:", "In reply to %s", etc.

Justin Tadlock recently used this approach for his comment parent link block. See "Link Text" in block settings sidebar:

https://github.com/x3p0-dev/x3p0-comment-parent-link

tadlock-comment-parent-link

"Cancel reply"

The "Cancel reply" link should be a separate block. The user thereby has the freedom to visually place it or programmatically style it, e.g., row block or flex to place it after or to the right of "Replying to A WordPress Commenter", or simply leave it placed below "Replying to A WordPress Commenter".

Currently, the placing of the "Cancel reply" link in the "Replying to A WordPress Commenter" heading in a smaller font size seems weird.

The "Cancel reply" link text should be customizable in the block settings sidebar .

Related

#38107

@richtabor
Copy link
Member

I think the reply title should work like it does today — but be a standalone block very similar to the Comments Title block. That way you can style it to fit in with the rest of your design. It doesn't have to be customizable via RichText either. Just allowing style controls would be big.

CleanShot.2023-04-01.at.10.08.50.mp4

@richtabor
Copy link
Member

We could start there perhaps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Comments Form Affects the Comments Form Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants