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

Comment Author Name: Add missing typography support #43256

Merged

Conversation

aaronrobertshaw
Copy link
Contributor

Related:

What?

Adds missing text-decoration support to the Comment Author Name.

Why?

While there might not be a lot of value in text decoration styles for the comment author name block adding this helps us ensure consistent design tools across blocks.

How?

  • Opts into text decoration support.

Testing Instructions

  1. Load the block editor with a post containing comments
  2. Add a comments block to the post and select the comment author's name
  3. Confirm the text decoration control is now available within the Typography panel's ellipsis menu
  4. Experiment with this control both with and without the "Link to author's URL" option toggled
  5. Save and confirm the styles appear on the frontend
  6. Test the new support works for the block via theme.json and global styles.

Screenshots or screencast

Screen.Recording.2022-08-16.at.7.24.00.pm.mp4

@aaronrobertshaw aaronrobertshaw added [Type] Enhancement A suggestion for improvement. [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Block] Comment Author Affects the Comment Author Block [Feature] Typography Font and typography-related issues and PRs labels Aug 16, 2022
@aaronrobertshaw aaronrobertshaw self-assigned this Aug 16, 2022
@apeatling
Copy link
Contributor

All worked correctly within the post editor, and via front end:

Screenshot 2022-08-16 at 10 35 47 AM

Copy link
Member

@ramonjd ramonjd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

✅ The text decoration control is now available within the Typography panel's ellipsis menu
✅ Styles appear correctly in editor and frontend with and without the "Link to author's URL" option toggled (block and classic themes)
✅ Tested the new support works for the block via theme.json and global styles.

@aaronrobertshaw aaronrobertshaw merged commit 4bd4a8f into trunk Aug 17, 2022
@aaronrobertshaw aaronrobertshaw deleted the add/missing-typography-supports-to-comment-author-name branch August 17, 2022 01:27
@github-actions github-actions bot added this to the Gutenberg 14.0 milestone Aug 17, 2022
@femkreations femkreations added the Needs User Documentation Needs new user documentation label Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Comment Author Affects the Comment Author Block [Feature] Design Tools Tools that impact the appearance of blocks both to expand the number of tools and improve the experi [Feature] Typography Font and typography-related issues and PRs Needs User Documentation Needs new user documentation [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants