Skip to content

Commit

Permalink
fix(mdAutocomplete): Fix small style regression introduced by multipl…
Browse files Browse the repository at this point in the history
…e errors.

The autocomplete used different CSS than the multilple error messages
expeceted. Fix by making autocomplete the same as input.scss.

Fixes angular#4692. Closes angular#4695.
  • Loading branch information
topherfangio authored and kennethcachia committed Sep 23, 2015
1 parent 3b8aa7f commit cebe606
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/autocomplete/autocomplete.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cebe606

Please sign in to comment.