-
Notifications
You must be signed in to change notification settings - Fork 4.6k
[Site Editor]: Add default white background for themes with no background color set
#46314
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
Conversation
|
Size Change: +1 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
jameskoster
left a comment
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.
Seems to be working for me :)
|
Adjusting this in #46752. |
|
Mentioning that this breaks really easily if the load order of CSS changes. We are running Gutenberg in an environment where CSS is concatenated, which results in a blank white site editor. (see Automattic/wp-calypso#71679) We fixed that by removing this change from our deployment of Gutenberg |
What?
Fixes: #46291
Testing Instructions
emptytheme or a theme which doesn't set the background coloreditoriswhitewhite.Notes
In some places it might make some time to apply the default color and that is because the css rule is applied to the iframe and needs to load. I tried at first to update in an
uppernode, but it's used in more places where we do rely on the dark color. Of course any suggestion for better placement is welcome.