-
Notifications
You must be signed in to change notification settings - Fork 4.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
Global Styles: Always load block CSS from __experimentalStyle #42005
Global Styles: Always load block CSS from __experimentalStyle #42005
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.
The code looks like it does what the PR says and I tested for the fixed Toujours bug which is gone with this patch.
This was relevant to a different PR, sorry! |
There is a conversation at core about how this works for classic themes, see https://core.trac.wordpress.org/ticket/56467#comment:408 @scruffian @draganescu |
What?
We need to always load the styles from __experimentalStyle, not just when assets are being split.
Why?
This needs to happen so that the __experimentalStyle rules are always applied.
How?
We attach the block styles to the end of the global styles CSS.
Testing Instructions
Fixes Automattic/wp-calypso#64994
Screenshots or screencast
@WordPress/block-themers