Repository navigation
Query Pagination Numbers: Add border and padding support - #85245
Conversation
Co-authored-by: Rinkal Pagdar <92097119+rinkalpagdar@users.noreply.github.com>
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: +378 B (0%) Total Size: 9.05 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. Regression: updating a specific option will only change its value and will not corrupt others in
|

Replaces #66401 by @rinkalpagdar.
Related:
What?
Adds border (color, radius, style and width) and padding support to the Page Numbers block.
Why?
Theme authors and site owners cannot frame the page numbers with a border or padding. The block only has background controls.
How?
Adds
__experimentalBorderandspacing.paddingto the block'sblock.jsonsupports, with both controls shown by default. It follows #66401, with the styles on the wrapper, where the background already applies. Margin is left out because the parent Query Pagination owns the space between its children.A new
style.scssaddsbox-sizing: border-box, as in Comments Pagination Next (#64310). No PHP change is needed. With one page the block renders nothing, so there is no empty box.Testing Instructions
Setup: a Query Loop with Pagination and several pages of posts.
Screenshots or screencast
Use of AI Tools
Implemented, built and screenshotted by a Claude Code agent from a predefined task.