Pagination Block: Fix inconsistent margins between editor and frontend#64874
Pagination Block: Fix inconsistent margins between editor and frontend#64874tjcafferkey merged 9 commits intotrunkfrom
Conversation
…margins consistent
|
Size Change: +901 B (+0.05%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 0ae2d03. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10599719310
|
|
There remains a specificity issue whereby if you want to use "core/query-pagination-previous": {
"spacing": {
"margin": {
"bottom": "0"
}
}
}These are overridden by the |
Is there any reason you would want to use margin in a flex layout? Pinning @tellthemachines @aaronrobertshaw for visibility |
|
@t-hamano you're right, but in this case they wanted to be reset back to |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If 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. |
|
The margin issues can occur with any block in a flex layout, so this issue might be worth discussing more extensively in #43248. How about removing the addition of margin/padding support from this PR for now? |
t-hamano
left a comment
There was a problem hiding this comment.
LGTM!
I've tested multiple themes, browser sizes, and pagination variations and they all seem to work as expected. The layout is more consistent with the removal of redundant margins.
Twenty Twenty-Four
Desktop
| Before | After |
|---|---|
![]() |
![]() |
Mobile
| Before | After |
|---|---|
![]() |
![]() |
Twenty Twenty-One
Desktop
| Before | After |
|---|---|
![]() |
![]() |
Mobile
| Before | After |
|---|---|
![]() |
![]() |








Fixes woocommerce/woocommerce#42204
Fixes #51299
What?
Why?
Fix the inconsistent margins between the editor and the front-end.
How?
By removing offending CSS rules.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast