-
Notifications
You must be signed in to change notification settings - Fork 32
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
fix: Theming - switched from ?inline to ?raw css imports #1600
fix: Theming - switched from ?inline to ?raw css imports #1600
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1600 +/- ##
==========================================
- Coverage 46.74% 46.74% -0.01%
==========================================
Files 583 583
Lines 36256 36265 +9
Branches 9072 9072
==========================================
+ Hits 16947 16951 +4
- Misses 19257 19262 +5
Partials 52 52
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
* e.g. | ||
* | ||
* :root { | ||
* --dh-color-from-light-palette: #fff; | ||
* --dh-color-from-light-palette2: #ccc; | ||
* } | ||
* :root { | ||
* --dh-color-from-light-semantic: #000; | ||
* } | ||
* :root { | ||
* --dh-color-from-light-semantic-editor: #000; | ||
* } | ||
* :root { | ||
* --dh-color-from-light-semantic-grid: #000; | ||
* } | ||
* :root { | ||
* --dh-color-from-light-components: #000; | ||
* } |
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.
Not sure where this example came from?
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.
It's just an example of concatenation of themes (modified from the comment in the dark one). Once light theme is actually implemented there will be multiple imports
It seems that Enterprise does not handle css ?inline css imports in node_modules the same way it does in src. Namely, the raw content gets imported as an empty string instead of the raw content.
fixes #1599
BREAKING CHANGE: Theme css imports were switched from
?inline
to?raw
. Not likely that we have any consumers yet, but this would impact webpack config.