Is there a way to adjust the height of mat-form-field
when using appearance="outline"
to a specific pixel measurement, such as 40px (or any other value required by the UX team in the future)? I need to decrease the size of the mat-form-field.
How can this modification be achieved? Which part of the code needs to be adjusted to set the height to 40px? -1.1? .75 , 133%, Looking for a function or mathematical formula based on the provided solution below, or any alternative method that may be effective.
::ng-deep .mat-form-field-flex > .mat-form-field-infix { padding: 0.4em 0px !important;}
::ng-deep .mat-form-field-label-wrapper { top: -1.5em; }
::ng-deep .mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label {
transform: translateY(-1.1em) scale(.75);
width: 133.33333%;
}