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

Comments Pagination Numbers: Add typography support #43289

Merged

Conversation

aaronrobertshaw
Copy link
Contributor

Related:

What?

Adds typography support to the Comments Pagination Numbers block.

Why?

  • Adds typography styling for the Comments Pagination Numbers block.
  • Improves consistency of our design tools across blocks.
  • Allows numbers to be styled the same as the previous and next links

How?

  • Opts into typography supports.
  • Sets the font size as the only control displayed by default.

Testing Instructions

  1. Edit a post with several comments, add a Comments block and select the pagination's numbers.
  2. Check that the font size control displays by default.
  3. Test various typography settings ensuring styles are applied in the editor.
  4. Save and confirm the application on the frontend.
  5. Switch to the site editor, and select a page or template with a Comments block.
  6. Navigate to Global Styles > Blocks > Comments Pagination Numbers > Typography and apply typography styles there.
  7. Confirm the selected styles are reflected in the preview and on the frontend.

Screenshots or screencast

Screen.Recording.2022-08-17.at.11.10.24.am.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 [Feature] Typography Font and typography-related issues and PRs labels Aug 17, 2022
@aaronrobertshaw aaronrobertshaw self-assigned this Aug 17, 2022
Copy link
Contributor

@talldan talldan left a comment

Choose a reason for hiding this comment

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

Works great.

I put together a separate PR to fix the way the page numbers don't look like proper links in the editor in some themes - #43354.

@aaronrobertshaw aaronrobertshaw merged commit 0d6ca6f into trunk Aug 18, 2022
@aaronrobertshaw aaronrobertshaw deleted the add/typography-supports-to-comments-pagination-numbers branch August 18, 2022 05:32
@github-actions github-actions bot added this to the Gutenberg 14.0 milestone Aug 18, 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
[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.

None yet

3 participants