due to style problems with with VIEWENCAPSULATION.NONE in my angular component I switched to .EMULATED
Now, I am unable to make the simplest CSS changes.
The styles saved in the components css file, NOT in the global css file..
Eg, in a mat-tab element I want to make the font bold. Doing this on-the-fly in the devtools in chrome this works fine. Also this worked with no view encapsulation before.
Now it doesn't. A simple change likes this eludes me...
Here is my html and the previously working css (without encapsulation).
<mat-tab-group>
<mat-tab *ngFor="let l of letters" [label]="l.letter">
...
</mat-tab>
</mat-tab-group>
.mat-tab-label {
font-weight: bold!important;
}
I have tried all of the following, nothing works. Can somebody please point out the correct way? Thanks!
.mat-tab-label {
font-weight: bold!important;
}
mat-tab-label {
font-weight: bold!important;
}
.mat-tab.mat-tab-label {
font-weight: bold!important;
}
mat-tab.mat-tab-label {
font-weight: bold!important;
}
.makeBold {
font-weight: bold!important;
}