-
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
Don't add default-custom-properties styles to all compiled files #28395
Conversation
Size Change: -21.8 kB (-2%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
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.
I wish we had visual regression testing integration 😄
Based on the comment from the bot, it looks like it works like a charm. So great work on that field. It still needs to be verified that nothing has changed in the UI for
- non-FSE theme
- FSE theme
Examining the compiled files in |
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.
Based on the previous comment 🚢
Pushed an additional commit to make sure only the |
Tested with an FSE theme and a non-FSE. Looked in all scss files for the admin-scheme vars and they are only used for editor styles. The vars are properly defined in the editor and removed on the frontend. |
I think this one regressed color themes inside the editing canvas. Say you pick "Midnight" as color theme, the focus style for selected blocks should be red. But it's now WordPress blue. |
Specifically, these two CSS variables are no longer available for content inside the editing canvas: |
Checking and will submit a follow-up PR 👍 |
Happy to help test. Not urgent since it's scheduled for 9.9, but would be good to fix before then. |
See comment on #28395 (comment)
See comment on #28395 (comment)
Fixes #27663
After we split compiling of block-styles in #25220 we noticed that some styles get duplicated in all blocks.
This PR fixes the issue by correcting where the
default-custom-properties
get included.Checklist: