From 9891723e327b32d9b2f2752114c021d35ae1de05 Mon Sep 17 00:00:00 2001 From: Topher Fangio Date: Thu, 17 Sep 2015 11:09:26 -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. Closes #4695. --- 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;