Styles doesn't apply when using with CSS Modules
See original GitHub issueI’ve tried using the sample code: https://github.com/fkhadra/react-toastify#usage in my React app (which is using CSS Modules) but the styles are not being applied.
This line import 'react-toastify/dist/ReactToastify.css';
points to a CSS file which is already processed and converted to plain CSS class names.
Note: Removing CSS Modules config it works fine!
Now I wonder what I’m missing from the docs to put this to work in my react app.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Why CSS Modules styling is not working on my elements ...
You will use some css to different page and sometimes you will use same css class name. Same class name will make css...
Read more >Global vs. Local Styling In Next.js - Smashing Magazine
Any styling that doesn't make sense to add as a utility class, we can add into component styles using CSS modules. As a...
Read more >Component-Scoped Styles with CSS Modules - Gatsby
CSS Modules let you write styles in CSS files but consume them as JavaScript objects for additional processing and safety.
Read more >Solving the React Error: Not Picking Up CSS Style | Pluralsight
In this guide, you will learn about the errors that can occur while importing a CSS file into your React file.
Read more >CSS Modules by Example - JavaScript Stuff
You can use short, descriptive names like "button" without worrying about name ... in your CSS Module, and reference the class with styles.button...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I believe the readme file should be updated with the information given in this thread to give a heads up to those who use css modules.
Thanks for the feedback, i’ll close the issue then.