I was playing a little bit with angular materials components. I wanted to know how to overwrite style of angular materials components in scss of component, not in global.scss. And I am wondering why I can overwrite main class of example mat-btn ".mat-raised-button" with different css styles, but for example i can't overwrite main class on mat-tabs ".mat-tab , .mat-tab-header , .mat-ink-bar". I think this is simple question maybe it's about creating content in shadow dom or something but I want some PRO to answer that question :).
Asked
Active
Viewed 101 times
0
-
Does this answer your question? [Angular Material customize tab](https://stackoverflow.com/questions/45940965/angular-material-customize-tab) – AlleXyS Jun 09 '20 at 08:57
1 Answers
0
For material components like mat-tab, you can use ng-deep in css for styling
For eg:
mat-tab::ng-deep {
// your styles
}

mak15
- 367
- 2
- 12