Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

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 #4692.
  • Loading branch information
Topher Fangio committed Sep 17, 2015
1 parent bfb8dac commit 843f3fe
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 843f3fe

Please sign in to comment.