I'm trying to change the MAT-TABLE as per my visual design. for that I'm overriding material's css like below. Now I can see my table as per VD. but I don't know is this correct way to override the material's css.
what will be the impact?
impact means - :host ::ng-deep
does it affect any other css in my application?
shall i continue like this ? or is that any clean way to override the CSS. But by doing like this only the mat-table adopt the changes. By the way, my mat-table is reusable component.
.mat-paginator,
:host ::ng-deep.mat-form-field-infix {
background-color: #EDF2F7;
}
:host ::ng-deep.mat-paginator .mat-paginator-container,
:host ::ng-deep.mat-paginator-navigation-previous,
:host ::ng-deep.mat-paginator-navigation-next,
:host ::ng-deep.mat-select-value,
:host ::ng-deep.mat-select-arrow {
color: #626C7A !important;
}