Component Styles: Remove use of !important
now that @layer
is used
#5096
Labels
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Describe the bug
See this guide for more detailed info, but with the use of
@layer
in the component CSS, any use of!important
now has a bunch of extra weight to it, because of how!important
is resolved. The below sample shows a basic example a user saw where they expected their app style to override the lib style, which it didn't. So they needed to resort to adding their own@layer primevue
to resolve the conflict.https://stackblitz.com/edit/jwh1eh?file=src%2FApp.vue,src%2Fstyle.css
Reproducer
No response
PrimeReact version
10.0.3
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
App styles shouldn't require reimplementing the library
@layer
to work.The text was updated successfully, but these errors were encountered: