CSS injection order issue between dev & prod #21627
Labels
package: styles
Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.
support: question
Community support but can be turned into an improvement
When you import your code before material ui, production build will make materialui's styles more important and development build will make your styles more important.
Current Behavior 😯
The order of is different in production and development.
Expected Behavior 🤔
It should be the same.
Steps to Reproduce 🕹
Steps:
https://codesandbox.io/s/naughty-glade-mf8mq?file=/src/PaddedPaper.js
Deployed codesanbox with Vercel: https://csb-mf8mq-ahng75pjv.vercel.app/
A
with custom stylesB
Context 🔦
Just spend weekend debugging why is my production is broken and development works fine.
Your Environment 🌎
Used provided sandbox template (it has material v5 alpha but it is reproducible in v4 as well).
Browser: Brave Version 1.10.93 Chromium: 83.0.4103.106 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered: