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

Option to remove dependency on global CSS #359

Open
AlexW-Valtech opened this issue Apr 12, 2021 · 0 comments
Open

Option to remove dependency on global CSS #359

AlexW-Valtech opened this issue Apr 12, 2021 · 0 comments

Comments

@AlexW-Valtech
Copy link

I'm importing this package into another for my app where I use CSS modules and will wrap this carousel in another component. I'd like to not use global CSS, so my consuming Next.JS app doesn't take a direct dependency on this module.

Currently I can take the supplied CSS and bring that into my own CSS module and pass all the required classes into the components using className props. However the carousel will still output all the original CSS class references - this doesn't appear to break anything but does lead to references to classes that don't exist. Ideally I could use a parameter to disable the output of the default classes - a way of telling the carousel that I'll take ownership for the CSS.

Would that be possible? Is there a problem this will cause, something that is in the global CSS that I cannot currently provide via my own set of classes?

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

2 participants