-
Notifications
You must be signed in to change notification settings - Fork 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
SDK: Jetpack Logo Color Wrong due to Broken CSS Variables #30469
Comments
The SDK is intended to provide a Calypso-like environment for building and bundling. In JavaScript, we expect a certain set of Babel transformations and polyfills. It seems that we need to provide a Calypso SASS "prelude," it might be a section like the following: wp-calypso/assets/stylesheets/style.scss Lines 7 to 9 in eb46ec9
|
We can fix this by conditionally setting |
Working up a PR to do that... |
#30505 should do it |
As reported by @jeherve in Slack (p1548774845453100-slack-jetpack-gutenberg), the Jetpack logo in the Jetpack Gutenberg sidebar is broken:
While it should look like this:
This is due to this change:
https://github.com/Automattic/wp-calypso/pull/30232/files#diff-b3f6b257d3217c67ad46a47c0acf88bbR32
which made the SDK-built Jetpack Gutenblocks use a CSS variable. However, that CSS variable, which is defined at
wp-calypso/assets/stylesheets/shared/_color-schemes.scss
Line 219 in 34c029e
isn't imported into any of the relevant blocks files.
We're reverting this part for now (#30468).
Another proven fix is to import the color schemes file into e.g.
jetpack-plugin-sidebar.scss
However, we should probably import color definitions at a more 'global' level into our blocks. Furthermore, we also might need to import other Calypso style definitions to be able to reliably use them.
Pinging @Automattic/team-calypso for advice on the 'correct' way to do this.
A @simison @sirreal @ockham collaboration.
The text was updated successfully, but these errors were encountered: