Skip to content

Commit ca3a3b8

Browse files
mmalerbaandrewseguin
authored andcommitted
fix(input): make sure 1-line hint is fully contained by input container. (#5912)
1 parent bbadd01 commit ca3a3b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/input/_input-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
// The padding applied to the input-wrapper to reserve space for the subscript, since it's
148148
// absolutely positioned. This is a combination of the subscript's margin and line-height, but we
149149
// need to multiply by the subscript font scale factor since the wrapper has a larger font size.
150-
$wrapper-padding-bottom: ($subscript-margin-top + $line-height) * $subscript-font-scale;
150+
$wrapper-padding-bottom: 0.5em + ($line-height * $subscript-font-scale);
151151

152152
.mat-input-container {
153153
@include mat-typography-level-to-styles($config, input);

0 commit comments

Comments
 (0)