Currently, I have overridden the angular material style in my global SCSS style as follows:
.mat-form-field-infix{
padding: 0.5em 0 0.5em 0 !important;
}
However, I now need to apply a different padding to the same element in my component for additional space to display more data. In my component SCSS style, I have done the following:
:host ::ng-deep .mat-form-field-infix{
padding: 0.2em 0 0.2em 0 !important;
}
The issue is that this last styling propagates to all components upon loading. How can I prevent this from happening?