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

Commit

Permalink
fix(select): fix alignment of select dropdown arrow
Browse files Browse the repository at this point in the history
closes #1815
  • Loading branch information
rschmukler committed Mar 24, 2015
1 parent f62fd48 commit 5c853e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $interpolate, $compile,
// If not provided, we automatically make one
if (!labelEl.length) {
labelEl = angular.element('<md-select-label><span></span></md-select-label>');
} else {
if (!labelEl[0].firstElementChild) {
var spanWrapper = angular.element('<span>');
spanWrapper.append(labelEl.contents());
labelEl.append(spanWrapper);
}
}
labelEl.append('<span class="md-select-icon" aria-hidden="true"></span>');
labelEl.addClass('md-select-label');
Expand Down
4 changes: 4 additions & 0 deletions src/components/select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ md-select {
box-sizing: border-box;
min-width: 8 * $baseline-grid;

*:first-child {
flex: 1;
}

.md-select-icon {
align-items: flex-end;
text-align: end;
Expand Down

0 comments on commit 5c853e6

Please sign in to comment.