-
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
Restore classic auto margin rule to its previous specificity. #60802
Conversation
Size Change: -2 B (0%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
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. |
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.
This is testing nicely for me, resolves the issue in Twenty Twenty, and I didn't notice any regressions or other issues when testing with a range of random themes from the theme directory.
LGTM! ✨
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.
Thanks for the reviews folks! |
Appreciate the quick fix and reviews everyone, nice work! 🙇 |
Co-authored-by: tellthemachines <[email protected]> Co-authored-by: andrewserong <[email protected]> Co-authored-by: ramonjd <[email protected]> Co-authored-by: arthur791004 <[email protected]>
What?
Fixes bug introduced in #60154 and reported here. Themes relying on this rule for editor styles might have seen some inadvertent changes with the specificity reduction.
Testing Instructions
Note: in testing this I noticed that the auto margin rule is causing a discrepancy between editor and front-end in the Details block on both Twenty Twenty and TT1, but that's likely due to those themes not having targeted styles for that block such as they do for older blocks like Columns. It remains an issue regardless of the specificity of this rule, so shouldn't be a blocker for this PR.
Testing Instructions for Keyboard
Screenshots or screencast