Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix(datepicker,select): arrow button consistency (#9807)
Browse files Browse the repository at this point in the history
* Fixes the datepicker's arrow being off a few pixels inside `md-input-container`, as well as being too close to the bottom when not in a `md-input-container`.
* Fixes the select's arrow icon being too dark, because it inherits from the closest `color` rule.

Relates to #9798.
  • Loading branch information
crisbeto authored and kara committed Nov 15, 2016
1 parent ce5f7c2 commit b0df030
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/datepicker/datePicker.scss
Expand Up @@ -194,10 +194,10 @@ md-datepicker {
.md-datepicker-triangle-button {
position: absolute;
@include rtl-prop(right, left, 0, auto);
top: $md-date-arrow-size;
bottom: -$md-date-arrow-size / 2;

// TODO(jelbourn): This position isn't great on all platforms.
@include rtl(transform, translateY(-25%) translateX(45%), translateY(-25%) translateX(-45%));
@include rtl(transform, translateX(45%), translateX(-45%));
}

// Need crazy specificity to override .md-button.md-icon-button.
Expand Down
8 changes: 8 additions & 0 deletions src/components/select/select-theme.scss
Expand Up @@ -94,6 +94,14 @@ md-select.md-THEME_NAME-theme {
}
}
}

.md-select-icon {
color: '{{foreground-3}}';

&:hover {
color: '{{foreground-2}}';
}
}
}

md-select-menu.md-THEME_NAME-theme {
Expand Down

0 comments on commit b0df030

Please sign in to comment.