Disabling View Encapsulation on PrimeNG #17
-
A common problem that we get questions on is the need to use Angular Material opts to disable View Encapsulation, and I wanted to open up a discussion on whether PrimeNG should follow suit to avoid confusion and it "just works", and we assume that Angular Material is a representation of the "best practice" way to handle UI libraries. The addition of pass-through props may be a great time to introduce a change like this, though I believe turning off encapsulation should not be a breaking change, it's going the other direction that would cause breakages. Curious your thoughts! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm a bit confused because default value is encapsulation: ViewEncapsulation.None, for example. https://github.com/primefaces/primeng/blob/master/src/app/components/checkbox/checkbox.ts
I'm not sure, it is strictly based on Material Design and I heard customization is not easy, I remember seeing !important in their CSS as well, things may have improved lately as I believe they changed their implementation. PassThrough is definitely coming to PrimeNG which will remove the necessity to use ng:deep but can you give me a concrete example so we can go over it? When did you need :host ::ng-deep. Styling enhancements like CSS variables migration from scss, moving primeng-sass-theme to core, unstyled mode, passthrough props will start in early october so let's make sure we don't miss anything important. |
Beta Was this translation helpful? Give feedback.
I'm a bit confused because default value is encapsulation: ViewEncapsulation.None, for example.
https://github.com/primefaces/primeng/blob/master/src/app/components/checkbox/checkbox.ts
I'm not sure, it is strictly based on Material Design and I heard customization is not easy, I remember seeing !important in their CSS as well, things may have improved lately as I believe they changed their implementation.
PassThrough is definitely coming to PrimeNG which will remove the necessity to use ng:deep but can you give me a concrete example so we can go over it? When did you need :host ::ng-de…