I am trying to set some styles on a child component based on a class applied to the child. The component has the option to add a class but I am not able to reference it from the parent component.
I have a components that consists of a typescript file, that probably does not matter, an html file and a scss file.
The html file (simplified) is: viewer.component.html:
<navigator class="test-class">
<other stuff...>
</navigator>
I can see that in the html generated the navigator tag has the expected class.
The html scss (simplified) is:
viewer.component.scss:
.test-class {
color: red;
}
:host ::ng-deep .test-class {
color: red;
}
::ng-deep .test-class {
color: red;
}
If I write the same css in a global css, it works as expected.