How to replace Angular Material Styles on own?
问题 I try to changes CSS styles in style.css of components file like this: .mat-tab-label { border-radius: 3px; background-color: #eeeeee; } But it does not repalce Angular Material styles. Any custom style can not overwrite Angular Material styles. 回答1: You can achieve that by adding /deep/ before the css class: /deep/ .mat-tab-label { border-radius: 3px; background-color: #eeeeee; } OR >>> .mat-tab-label { border-radius: 3px; background-color: #eeeeee; } UPDATE: /deep/ and >>> will be