Skip to content

Instantly share code, notes, and snippets.

@acodesmith
Created October 1, 2021 12:48
Show Gist options
  • Save acodesmith/2f9e464ab1ea2d545a2642cd8341cf37 to your computer and use it in GitHub Desktop.
Save acodesmith/2f9e464ab1ea2d545a2642cd8341cf37 to your computer and use it in GitHub Desktop.
Angular Material Input Set Height
.mat-form-field {
font-size: 0.74rem;
input {
font-size: 1rem;
}
label.mat-form-field-label {
font-size: 1rem;
top: 1.45em;
}
&.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,
&.mat-form-field-can-float
.mat-input-server:focus
+ .mat-form-field-label-wrapper
.mat-form-field-label {
transform: translateY(-1.25em) scale(0.75);
width: 133.33333%;
}
}
@ph1823
Copy link

ph1823 commented Jul 10, 2024

do you have a version for new material ? In Angular Material v17 that did't work :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment