Created
October 1, 2021 12:48
-
-
Save acodesmith/2f9e464ab1ea2d545a2642cd8341cf37 to your computer and use it in GitHub Desktop.
Angular Material Input Set Height
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
do you have a version for new material ? In Angular Material v17 that did't work :(