From 843f3feb666c6450298187b29543cf63388f07f8 Mon Sep 17 00:00:00 2001 From: Topher Fangio <--global> Date: Wed, 16 Sep 2015 16:22:15 -0500 Subject: [PATCH] fix(mdAutocomplete): Fix small style regression introduced by multiple errors. The autocomplete used different CSS than the multilple error messages expeceted. Fix by making autocomplete the same as input.scss. Fixes #4692. --- src/components/autocomplete/autocomplete.scss | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/autocomplete/autocomplete.scss b/src/components/autocomplete/autocomplete.scss index 1d62e0212b0..618f04a86b6 100644 --- a/src/components/autocomplete/autocomplete.scss +++ b/src/components/autocomplete/autocomplete.scss @@ -44,12 +44,19 @@ md-autocomplete { } } &[md-floating-label] { - padding-bottom: $input-container-padding + $input-error-height; border-radius: 0; background: transparent; height: auto; + md-input-container { - padding-bottom: 0; + padding-bottom: $input-container-padding + $input-error-height; + + // When we have ng-messages, remove the input error height from our bottom padding, since the + // ng-messages wrapper has a min-height of 1 error (so we don't adjust height as often; see + // input.scss file) + &.md-input-has-messages { + padding-bottom: $input-container-padding; + } } md-autocomplete-wrap { height: auto;