Component Styles: Remove use of !important
now that @layer
is used
#4637
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Describe the bug
Copy of: primefaces/primereact#5096
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
https://stackblitz.com/edit/jwh1eh?file=src%2FApp.vue,src%2Fstyle.css
PrimeVue version
3.36.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: