SCSS import order
Unanswered
Koolie posted this in #help-forum
KoolieOP
Hey guys,
I'm using nextJs 13 with scss modules.
I have a reusable button component with some styles for it. The component has the className props. I'm trying to use this button on the page and add some styles there, pass the classname prop from page to button component. And the problem is that page styles were loaded earlier, so the button styles have priority over them. As a result i can not override button styles withour using !important or something like this. I've saw a couple of posts with the same problem, but nobody haven't found the solution there.
Maybe there is way to fix that now?
Thank you!
I'm using nextJs 13 with scss modules.
I have a reusable button component with some styles for it. The component has the className props. I'm trying to use this button on the page and add some styles there, pass the classname prop from page to button component. And the problem is that page styles were loaded earlier, so the button styles have priority over them. As a result i can not override button styles withour using !important or something like this. I've saw a couple of posts with the same problem, but nobody haven't found the solution there.
Maybe there is way to fix that now?
Thank you!