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

Commit bc44010

Browse files
crisbetoThomasBurleson
authored andcommitted
fix(datepicker): use accent and warn theme colors
Fixes the datepicker not using the colors from `md-accent` and `md-warn`. Fixes #9006. Closes #9056
1 parent 28fe0fa commit bc44010

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

src/components/datepicker/datePicker-theme.scss

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@
1111
border-bottom-color: '{{foreground-4}}';
1212

1313
&.md-datepicker-focused {
14-
border-bottom-color: '{{primary-color}}'
14+
border-bottom-color: '{{primary-color}}';
15+
16+
.md-accent & {
17+
border-bottom-color: '{{accent-color}}';
18+
}
19+
20+
.md-warn & {
21+
border-bottom-color: '{{warn-A700}}';
22+
}
1523
}
1624

1725
&.md-datepicker-invalid {
@@ -36,7 +44,19 @@
3644
// Open state for all of the elements of the picker.
3745
.md-datepicker-open {
3846
.md-datepicker-calendar-icon {
39-
fill: '{{primary-500}}';
47+
color: '{{primary-color}}';
48+
}
49+
50+
&.md-accent, .md-accent & {
51+
.md-datepicker-calendar-icon {
52+
color: '{{accent-color}}';
53+
}
54+
}
55+
56+
&.md-warn, .md-warn & {
57+
.md-datepicker-calendar-icon {
58+
color: '{{warn-A700}}';
59+
}
4060
}
4161
}
4262

0 commit comments

Comments
 (0)