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

Query page numbers block: add same supports that next/prev page have #39835

Merged
merged 2 commits into from Mar 29, 2022

Conversation

MaggieCabrera
Copy link
Contributor

What?

Fixes #38386 as an alternative to #38508 In this case I'm only adding the color/typography supports as per this comment. We can revisit this block at a later date to add spacing options, but this is a safe first step to bring the block in line with the prev/next page blocks in terms of user customization.

Why?

Before this PR you could customize the prev/next page blocks typography (make the text bold for example), but not the page numbers. This made query pagination look inconsistent if you chose to use page numbers.

How?

This PR adds the same supports that the other blocks have and updates the docs to reflect the change.

Testing Instructions

On a query loop block, add query pagination with numbers, the options for the block should be the same for the page numbers and prev/next page blocks

Screenshots or screencast

The screenshots show all the available options for the blocks, not just the ones that show by default:

Page numbers block prev/next page
Screenshot 2022-03-29 at 09 29 09 Screenshot 2022-03-29 at 09 29 26

@MaggieCabrera MaggieCabrera self-assigned this Mar 29, 2022
@MaggieCabrera MaggieCabrera added the [Block] Query Pagination Affects the Query Pagination Block - used for pagination within the Query Loop Block label Mar 29, 2022
Copy link
Contributor

@ntsekouras ntsekouras left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

I just left a small comment about adding the background color as a default control, like the other two blocks.

Co-authored-by: Nik Tsekouras <ntsekouras@outlook.com>
@MaggieCabrera MaggieCabrera merged commit a3c9051 into trunk Mar 29, 2022
@MaggieCabrera MaggieCabrera deleted the update/query-pagination-numbers-supports branch March 29, 2022 14:03
@github-actions github-actions bot added this to the Gutenberg 13.0 milestone Mar 29, 2022
@andrewserong
Copy link
Contributor

Thanks for following up here, Maggie!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Query Pagination Affects the Query Pagination Block - used for pagination within the Query Loop Block
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Pagination] Allow users to customize page numbers
4 participants