NathanaelA / nativescript-platform-css

A NativeScript plugin to deal with Declarative UI and Platform specific CSS
23 stars 18 forks source link

Use :host instead of /deep/ #14

Closed erkanarslan closed 6 years ago

erkanarslan commented 6 years ago

Angular isolates component styles from other parts of application. It seems that /deep/ .ios .class-name breaks this isolation and styles are applied to other parts of the application as well. I tried .ios :host .class-name approach and it seems that this one doesn't break isolation.

It would be better for other users if you change /deep/ example on the read me file to the one with :host.

NathanaelA commented 6 years ago

Thank you I'll update the doc's.