From ca3a3b84b496439f0e6c93f84aed3da0bb49d107 Mon Sep 17 00:00:00 2001 From: mmalerba Date: Tue, 25 Jul 2017 16:23:41 -0700 Subject: [PATCH] fix(input): make sure 1-line hint is fully contained by input container. (#5912) --- src/lib/input/_input-theme.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/input/_input-theme.scss b/src/lib/input/_input-theme.scss index 8b478f5a9cf..d184d474999 100644 --- a/src/lib/input/_input-theme.scss +++ b/src/lib/input/_input-theme.scss @@ -147,7 +147,7 @@ // The padding applied to the input-wrapper to reserve space for the subscript, since it's // absolutely positioned. This is a combination of the subscript's margin and line-height, but we // need to multiply by the subscript font scale factor since the wrapper has a larger font size. - $wrapper-padding-bottom: ($subscript-margin-top + $line-height) * $subscript-font-scale; + $wrapper-padding-bottom: 0.5em + ($line-height * $subscript-font-scale); .mat-input-container { @include mat-typography-level-to-styles($config, input);