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

Commit

Permalink
fix(mdChips): Autocomplete styling is incorrect.
Browse files Browse the repository at this point in the history
The chips autocomplete had unnecessary styling and the default
autocomplete directive does not add the `md-input` class to it's
input, so it did not look correct.

Fixes #4600.
  • Loading branch information
topherfangio committed Sep 14, 2015
1 parent c7f2d64 commit ade813f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/components/autocomplete/js/autocompleteDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ function MdAutocomplete () {
aria-autocomplete="list"\
aria-haspopup="true"\
aria-activedescendant=""\
aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>\
aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"\
class="md-input"/>\
<div md-autocomplete-parent-scope md-autocomplete-replace>' + leftover + '</div>\
</md-input-container>';
} else {
Expand All @@ -244,7 +245,8 @@ function MdAutocomplete () {
aria-autocomplete="list"\
aria-haspopup="true"\
aria-activedescendant=""\
aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>\
aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"\
class="md-input"/>\
<button\
type="button"\
tabindex="-1"\
Expand Down
3 changes: 2 additions & 1 deletion src/components/chips/chips.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
$chip-font-size: rem(1.6) !default;
$chip-height: rem(3.2) !default;
$chip-padding: 0 rem(1.2) 0 rem(1.2) !default;
$chip-input-padding: 0 !default;
$chip-remove-padding-right: rem(2.2) !default;
$chip-remove-line-height: rem(2.2) !default;
$chip-margin: rem(0.8) rem(0.8) 0 0 !default;
Expand Down Expand Up @@ -122,7 +123,7 @@ $contact-chip-name-width: rem(12) !default;
display: block;
line-height: $chip-height;
margin: $chip-margin;
padding: $chip-padding;
padding: $chip-input-padding;
float: left;
input {
&:not([type]),&[type="email"],&[type="number"],&[type="tel"],&[type="url"],&[type="text"] {
Expand Down

0 comments on commit ade813f

Please sign in to comment.