-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
CSS rule order changes after hydration in Vite development mode #9503
Comments
you'd need to add !important |
Vite's handling of CSS is not my strong suit, but I think this problem can be avoided if you re-order your imports? Right now you have:
Which results in Vite discovering If you want
|
Thanks for the response. You're right that we can work around the flash of incorrect styling by tweaking the import order, however in this case loading the |
Why don't you add the "imporant" keyword of css |
Reproduction
Go to https://stackblitz.com/edit/remix-run-remix-8r5nmy?file=app%2Froutes%2F_index.tsx and reload the page. Alternatively, open
root.tsx
and comment out the<Scripts />
component and observe the difference between the page with hydration and withoutSystem Info
Used Package Manager
npm
Expected Behavior
There should be no visible change to the styles before and after hydration
Actual Behavior
The styles change after the page has hydrated
The text was updated successfully, but these errors were encountered: