-
Notifications
You must be signed in to change notification settings - Fork 2k
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
WP.com Block Editor: Add front-end styles for text justify. #36401
Conversation
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
77e2ef8
to
2f7d0ed
Compare
Since this file is served to Jetpack (it's in |
@kwight is it right that we should be serving an older JS file with the related hash or do we only serve latest? If it's the latter, I'm still inclined on accepting this for now with follow up, since this has been half-broken for folks for a while. |
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 @kwight! This tests well for me
@simison the one line I've removed wasn't doing anything anyways in my my initial debugging of the problem, so I'm confident we're fine with older versions too. I'll merge this, confirm I'm right, and if not, do a followup 👍 |
@simison Yep, we're good; this patch applied over the older 6.2 still successfully creates and displays the old inline format (which I'm assuming would be the WP 5.2 and 5.1 formats, since I don't see any other earlier, related format changes). |
Nice, thanks for confirming! |
In Gutenberg 6.3, text align styles for blocks were moved from inline to classes, breaking our Justify text styles for Rich Text blocks. This PR updates our integration to use the new class-based method.
Testing Instructions
See D33289-code.
Fixes #36391