-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Pagination Block: Fix inconsistent margins between editor and frontend #64874
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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