-
Notifications
You must be signed in to change notification settings - Fork 4.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
components: Use vanilla emotion for view
#31099
Conversation
Size Change: +669 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
Note, this PR is currently in a broken state, i'm not sure how to fix it as of right now but am brainstorming ideas. The core of the problem is that by not importing from |
bebfefb
to
9293fdd
Compare
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 love all the removed code, keep it coming :P
978b236
to
ee26897
Compare
Description
Use vanilla emotion for the base
View
component... as well as a whole slew of other updates that are necessary to makae this initial PR to migrate to vanilla emotion work.I'm sorry for the size of this PR. I tried to split it up but it seems impossible, there are either various build failures or tests that won't pass without all of these changes. I wish I could summarize the changes somehow but honestly it followed the process of starting with the smallest change and then following every rabbit hole that opened up until no more rabbit holes existed. I've essentially played whack-a-mole and whacked all the moles 😭
I'd be happy to walk anyone though this PR and the progression of it. Hopefully the commits help a little bit with that, but some of them aren't split up nicely at all.
Even with all these changes, there's still a lot to do. This leaves certain components like
surface
completely broken, but it's also unused so I think this is safe to do.How has this been tested?
Run
npm run storybook:dev
and ensure that G2 components continue to work, especially thinks like Text and Flex which usecreateComponent
as these depend directly onView
.Also the tests and build should pass.
Types of changes
New feature?
Checklist:
*.native.js
files for terms that need renaming or removal).