-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
refactor: import emotion-theming methods from @superset-ui/style #10157
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10157 +/- ##
=======================================
Coverage 70.50% 70.50%
=======================================
Files 594 594
Lines 31391 31389 -2
Branches 3215 3215
=======================================
- Hits 22131 22130 -1
+ Misses 9144 9143 -1
Partials 116 116
Continue to review full report at Codecov.
|
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.
Haven't run it locally yet (I will) but it seems perfectly sensible to me.
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 pulled the branch and tried it out. everything works nicely 👍
This makes the code cleaner and fixes missing theme veriables when `npm link @superset-ui/style`.
…che#10157) This makes the code cleaner and fixes missing theme variables when `npm link @superset-ui/style`.
SUMMARY
This makes the code cleaner and fixes missing theme variables when
npm link @superset-ui/style
.Webpack somehow has independent namespaces for regular JS modules and those in soft-linked
node_modules
, soimport { styled } from '@superset-ui/style'
andimport { ThemeProvider } from 'emotion-theming
will access different cached themes.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A
TEST PLAN
Manual testing, expect styled components used
theme
variables correctly load whennpm link ~/projects/superset-ui/packages/superset-ui-style
andnpm run dev
ADDITIONAL INFORMATION