Allow ignoring/excluding a css .class from being transformed by CSS Module #19680
JuanmaMenendez
started this conversation in
Ideas
Replies: 1 comment
-
It's outdated but FYI, just remove |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature request
Allow ignoring/excluding a css .class from being transformed by CSS Module
Is your feature request related to a problem? Please describe.
I need to have normal CSS classes with specifics names (without being processed by CSS Modules).
I cannot have those classes in a global scope (imported in _app.tsx)
Describe the solution you'd like
CSS modules currently support the use of :global or :local for those cases, but when we try to use it on nextjs we get the error:
"Syntax error: Selector ":global" is not pure (pure selectors must contain at least one local class or id)"
Nextjs needs to support :global and :local from CSS Modules
Additional context
Example to reproduce
in myComponent.module.css
Beta Was this translation helpful? Give feedback.
All reactions