pradel / react-responsive-modal

Simple responsive react modal
https://react-responsive-modal.leopradel.com/
MIT License
606 stars 95 forks source link

Skip built in classes #469

Open tyler-ground opened 3 years ago

tyler-ground commented 3 years ago

Some of my classes only partially take effect because the built in responsive-modal-modal class overrides some of the styles in them.

It would be great if I can add a noDefaultStyles={true} param to bypass the existing classes.

pradel commented 3 years ago

Pr welcome for this :)

gokulakrishnanc95 commented 3 years ago

Import your styles in parent folder and import react-responsive-modal/styles.css in child folder Now css Specificity Rules applies. And your your styles will take effect

cmmartin commented 2 years ago

Can't you just not import the CSS? Or copy the CSS file into your project and change it

mrcarl79 commented 2 years ago

This would be useful for people using tailwindcss or any other utility class css framework. Currently difficult to even set the modal background color and would prefer to be using tailwind classes and not importing and customising css for consistency.