-
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
Lowered specificity of alignment rules for support layout so wide alignments work. #38947
Conversation
You are right, I missed that, good catch! Should work now |
f4b0e44
to
751d2d7
Compare
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.
The original div removal change is important, and in the name of responding quickly to these side-effects, I think we should land it. It works well for fullwide, wide, floated, and content widths in editor and frontend:
Note that the fullwide not being fullwide in the editor, as best I can tell, is a padding issue with TT2, one which requires a bit more of a holistic solution we didn't get to in time for 5.9.
Also, to the best of my reading of the :where
selector, this is what it was designed for, and it helps lower the specificity instead of raise, which should only make this safer than it was before.
I would love more testing and sanity checks, CC: @jffng if you have time, since you reported the original issue. But I'd be happy to land this soon so we can see if there are additional issues.
Size Change: +6 B (0%) Total Size: 1.15 MB
ℹ️ View Unchanged
|
+1. Tested across a variety of block themes and this change restores the correct alignment and preserves the intention of the original PR, thank you both! |
Description
#38613 introduced a bug where wide alignments max-width rules where less specific than the new ones introduced for general alignments. This PR reduced the specificity of the new rule so wide alignments work again.
Props to @jasmussen for the code
Testing Instructions
Test on a block theme that wide alignments have the correct max-width
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).