Skip to content
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

Different ways of CSS generation between 2.X and 3.X #210

Open
danielo515 opened this issue Jan 12, 2020 · 2 comments
Open

Different ways of CSS generation between 2.X and 3.X #210

danielo515 opened this issue Jan 12, 2020 · 2 comments

Comments

@danielo515
Copy link

Hello,
Thanks for this amazing feature.
I was in the middle of an app development when I realized there is a new version of rekit which has some important improvements, like using hooks and functional components.
However, after porting some components the CSS rules are being applied differently (but I'm using the savme MUI version...)

Here is the old version:
image

This is using v3:

image

One key part seems to be the injection order of the CSS rules. On the new version they are injected first, while on the old version they are injected last.

Any reason for this change? What can I do to fix it?

@supnate
Copy link
Owner

supnate commented Jan 13, 2020

Actually I was not aware of this change. Maybe it's from the change of create react app template.

@danielo515
Copy link
Author

Yes, I thought that too. It can be the usage of webpack4 maybe... It is hard to determine, but is a real problem because you have to start using stuff like !important to beat the other rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants