I use 2 nebular themes: light and dark. A component bind the HTML result from a library to the innerHtml like this:
<div [innerHtml]="songHtml"></div>
I apply custom css to style this content. To make it work, I added
@Component({
[...]
encapsulation: ViewEncapsulation.ShadowDom,
})
Now I need to apply theme color like this:
@include nb-install-component() {
.chords-color-red {
color: nb-theme(text-color-red)
}
}
but this is not working... I read that this cannot work with the ViewEncapsulation.
What I also tried (without success):
Is there a way to make it work? Thanks
I finally found something but it's not pretty.
Note: ng-deep is deprecated but I found no other way to make it work