Material-ui: CSS Modules don't work

Created on 10 May 2018  路  7Comments  路  Source: mui-org/material-ui

I try to use css modules to style my components but the css is override by Material-UI css.

I even download the example by: https://codesandbox.io/s/m4j01r75wx (reported here https://material-ui-next.com/guides/interoperability/#css-modules and here https://material-ui-next.com/customization/css-in-js/#css-injection-order) but when i run npm install i got back npm WARN [email protected] No repository field. npm WARN [email protected] No license field. and when I run npm start the Button are default styled.

bug 馃悰

Most helpful comment

@Damix48 Thanks for the feedback! I'm on it.

All 7 comments

@Damix48 Is this a Material-UI issue?

Well, I think so, because if I don't use the Material-UI CSS Modules work fine and the code that there is in the documentation don't work.

Can you provide a reproduction repository? :)

@Damix48 Thanks for the feedback! I'm on it.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings