Skip to content

Commit

Permalink
fix(input): single-line hints overflowing the parent (#4107)
Browse files Browse the repository at this point in the history
Fixes #4051
  • Loading branch information
crisbeto authored and kara committed Apr 21, 2017
1 parent a200024 commit 0b9b582
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/input/input-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,14 @@ $mat-input-underline-disabled-background-image:
// Wrapper for the hints and error messages. Provides positioning and text size.
// Note that we're using `top` in order to allow for stacked children to flow downwards.
.mat-input-subscript-wrapper {
$line-height: 1.2em;

position: absolute;
font-size: 75%;
top: 100%;
width: 100%;
margin-top: -$mat-input-wrapper-spacing;
margin-top: -$line-height;
line-height: $line-height;
overflow: hidden; // prevents multi-line errors from overlapping the input
}

Expand Down

0 comments on commit 0b9b582

Please sign in to comment.