-
Notifications
You must be signed in to change notification settings - Fork 67
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
Dequeue FSE global styles #1724
Conversation
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 fixes the issues described and I'm still able to use the dutone and gradient options in the editor. 👍
Thanks @dkoo! |
🎉 This PR is included in version 1.56.2-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.56.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
WordPress 5.9 introduced a Global Styles file, which is meant to be populated by a theme's theme.json file. It's still enqueued on non-FSE themes, and is causing a couple small issues in the Newspack theme:
white
background colour class with the theme, and the!important
it uses overrides the theme's button hover styles (Button block:!important
in WP 5.9+ CSS variables overrides hover styles #1713).editor-font-sizes
overrides non-FSE themeeditor-font-sizes
in WP 5.9.1 newspack-newsletters#755).Closes #1713; see #1718 and Automattic/newspack-newsletters#755.
How to test the changes in this Pull Request:
global-styles-inline-css
style tag in the source, or confirm those styles are there in AMP's CSS usage.global-styles-css-custom-properties-inline-css
style tag.!important
in WP 5.9+ CSS variables overrides hover styles #1713, add a button block and make the background white and the text colour one of the other colours in the editor palette. On the front end, try hovering over the button; note that it turns white-on-white.npm run build
.#111
.global-styles-inline-css
is no longer loaded, or confirm those styles are no longer there in AMP's CSS usage.global-styles-css-custom-properties-inline-css
styles are no longer getting loaded.editor-font-sizes
overrides non-FSE themeeditor-font-sizes
in WP 5.9.1 newspack-newsletters#755 from the mix).Other information: