Skip to content
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

Skip built in classes #469

Open
tyler-ground opened this issue Jan 22, 2021 · 4 comments
Open

Skip built in classes #469

tyler-ground opened this issue Jan 22, 2021 · 4 comments

Comments

@tyler-ground
Copy link

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
Copy link
Owner

pradel commented Mar 4, 2021

Pr welcome for this :)

@gokulakrishnanc95
Copy link

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
Copy link

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

@mrcarl79
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants