I need to customise material input, specifically make it round with border radius. I've found a solution on how to do this by adding a class "custom-search" to the mat-form-field and applying the border radius in the global stlysheet like so
.custom-search .mat-form-field-outline .mat-form-field-outline-start {
border-radius: 100px 0 0 100px;
min-width: 100px;
}
.custom-search .mat-form-field-outline .mat-form-field-outline-end {
border-radius: 0 100px 100px 0;
}
However the background is not rounded, I managed to figure out the css classes that affect the background but changing it changes all the mat-form-fields in the app, and if I add my custom class it doesn't work.
.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-wrapper .mat-form-field-flex .mat-form-field-outline {
border-radius: 100px;
}
I do not want to use deprecated methods such as ng deep, !important, or turning off view encapsulation.
