mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(input): single-line hints overflowing the parent (#4107)
Fixes #4051
This commit is contained in:
committed by
Kara
parent
a2000246f5
commit
0b9b582071
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user