-
Notifications
You must be signed in to change notification settings - Fork 805
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
Fix site title block block style missing #26193
Conversation
…es with sites that have Gutenberg > 13.5 activated
Are you an Automattician? You can now test your Pull Request on WordPress.com. On your sandbox, run |
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
I couldn't reproduce the issue in an org+JP site either (using |
TestingRequirementsAtomic
Self-hosted
Simple
Browsers
Note for other testers -- when testing google fonts on simple sites with this PR's changes, it takes a few moments for the cached fonts to invalidate. After a bit, the proper font should be displayed |
I don't see any problems with updating the priority. From what I can tell, the frontend for all environments continues to load google fonts properly. 🚢 Thanks for drafting this 🙏 |
No, not specificity. Somehow Gutenberg 13.5.0+ fails to output the relevant styles at all.
It can happen in sites without Jetpack installed at all, if something else calls |
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.
Investigated to find the real cause of the issue, and suggested an update to the comment accordingly.
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 seemed to work ok on my WoA site with TT2 & Gutenberg v14.0.2, I was able to see the .wp-block-site-title
style correctly applied after patching with this branch.
* Set the callback priority to 22 to prevent it from causing style issues with sites that have Gutenberg > 13.5 activated * Changelog * Update projects/plugins/jetpack/modules/google-fonts.php Co-authored-by: Brandon Kraft <[email protected]> Co-authored-by: Brad Jorsch <[email protected]>
* [not verified] Fix site title block block style missing (#26193) * Set the callback priority to 22 to prevent it from causing style issues with sites that have Gutenberg > 13.5 activated * Changelog * Update projects/plugins/jetpack/modules/google-fonts.php Co-authored-by: Brandon Kraft <[email protected]> Co-authored-by: Brad Jorsch <[email protected]> * Prepare for the release Co-authored-by: Marcelo Serpa <[email protected]> Co-authored-by: Brad Jorsch <[email protected]>
* Set the callback priority to 22 to prevent it from causing style issues with sites that have Gutenberg > 13.5 activated * Changelog * Update projects/plugins/jetpack/modules/google-fonts.php Co-authored-by: Brandon Kraft <[email protected]> Co-authored-by: Brad Jorsch <[email protected]>
Fixes the issue reported here: p9F6qB-afB-p2
Related Issue: #26224
Discussion: p1662734279580389-slack-C01DF571R5Y
Changes proposed in this Pull Request:
Set the
Automattic\Jetpack\Fonts\Introspectors\Global_Styles::enqueue_global_styles_fonts
callback priority in theinit
hook to 22 to prevent it from causing style issues with sites that have Gutenberg > 13.5 activated.The default priority meant that this callback ran before this one in Gutenberg, and for some reason (probably CSS specificity?) it was affecting the styles/fonts set by the Gutenberg callback. See the details in the linked P2 page above.
This seems to happen only in org sites connected to JP and with the JP plugin installed. This includes WoA. Simple sites are not affected.
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
AT
vanilla JP (jurassic.ninja)
This bug doesn't manifest in plain JP+org sites, but we should still sanity-check the changes:
Simple sites
This bug doesn't manifest in simple sites, but we should still sanity-check the changes:
bin/jetpack-downloader test jetpack fix/site-title-block-block-style-missing
to install the JP plugin from this branch;