Skip to content

Commit 0b9b582

Browse files
crisbetokara
authored andcommitted
fix(input): single-line hints overflowing the parent (#4107)
Fixes #4051
1 parent a200024 commit 0b9b582

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/input/input-container.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,14 @@ $mat-input-underline-disabled-background-image:
225225
// Wrapper for the hints and error messages. Provides positioning and text size.
226226
// Note that we're using `top` in order to allow for stacked children to flow downwards.
227227
.mat-input-subscript-wrapper {
228+
$line-height: 1.2em;
229+
228230
position: absolute;
229231
font-size: 75%;
230232
top: 100%;
231233
width: 100%;
232-
margin-top: -$mat-input-wrapper-spacing;
234+
margin-top: -$line-height;
235+
line-height: $line-height;
233236
overflow: hidden; // prevents multi-line errors from overlapping the input
234237
}
235238

0 commit comments

Comments
 (0)