Skip to content

Commit b0df030

Browse files
crisbetokara
authored andcommitted
fix(datepicker,select): arrow button consistency (angular#9807)
* 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 angular#9798.
1 parent ce5f7c2 commit b0df030

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/components/datepicker/datePicker.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ md-datepicker {
194194
.md-datepicker-triangle-button {
195195
position: absolute;
196196
@include rtl-prop(right, left, 0, auto);
197-
top: $md-date-arrow-size;
197+
bottom: -$md-date-arrow-size / 2;
198198

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

203203
// Need crazy specificity to override .md-button.md-icon-button.

src/components/select/select-theme.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ md-select.md-THEME_NAME-theme {
9494
}
9595
}
9696
}
97+
98+
.md-select-icon {
99+
color: '{{foreground-3}}';
100+
101+
&:hover {
102+
color: '{{foreground-2}}';
103+
}
104+
}
97105
}
98106

99107
md-select-menu.md-THEME_NAME-theme {

0 commit comments

Comments
 (0)