Skip to content

Commit 5cffd7c

Browse files
mmalerbaandrewseguin
authored andcommitted
fix(form-field): fix underline at different zoom levels (#7567)
1 parent 147ae46 commit 5cffd7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/form-field/form-field.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ $mat-form-field-underline-height: 1px !default;
145145
position: absolute;
146146
height: $mat-form-field-underline-height;
147147
width: 100%;
148+
// Prevents underline from disappearing at lower zoom levels.
149+
transform: perspective(1px);
148150

149151
&.mat-disabled {
150152
background-position: 0;

0 commit comments

Comments
 (0)