Page 1 of 1

CSS not imported and affecting my component

Posted: 07 Feb 2023, 10:07
by takenbyWine
i made a login page and a signup page each with a seprate css file and using prime react and it doesn't matter in which css file i change anything it affects all pages

Re: CSS not imported and affecting my component

Posted: 09 Feb 2023, 10:00
by habubey
I have identified a few potential causes for the issue, and I would like to share them with you:
Global scope: Your CSS styles are global by default, meaning that changes made to the CSS file will apply to all instances of that element throughout your site if you haven't scoped your styles to specific elements.
Import statements: If you have imported the same CSS file into multiple pages, changes made to that file will affect all pages that have imported it.

If these causes do not resolve the issue, I request that you provide a reproducer (code sandbox etc.) example.
Best