Skip to content

Commit 7e67602

Browse files
devversionandrewseguin
authored andcommitted
fix(material/datepicker): expose datepicker-date-range-colors mixin
Exposes the `datepicker-date-range-colors` mixin which seems to be not accessible in the primary Sass entry-point, but being mentioned in the docs.
1 parent b2c3f26 commit 7e67602

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/material/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
checkbox-typography;
5050
@forward './chips/chips-theme' as chips-* show chips-theme, chips-color, chips-typography;
5151
@forward './datepicker/datepicker-theme' as datepicker-* show datepicker-theme, datepicker-color,
52-
datepicker-typography;
52+
datepicker-typography, datepicker-date-range-colors;
5353
@forward './dialog/dialog-theme' as dialog-* show dialog-theme, dialog-color, dialog-typography;
5454
@forward './divider/divider-theme' as divider-* show divider-theme, divider-color,
5555
divider-typography;

src/material/datepicker/datepicker.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,14 @@ selected range.
230230

231231
Note that comparison and overlap colors aren't derived from the current theme, due
232232
to limitations in the Material Design theming system. They can be customized using the
233-
`mat-date-range-colors` mixin.
233+
`datepicker-date-range-colors` mixin.
234+
235+
```scss
236+
@use '@angular/material' as mat;
237+
238+
@include mat.datepicker-date-range-colors(
239+
hotpink, teal, yellow, purple);
240+
```
234241

235242
### Customizing the date selection logic
236243

0 commit comments

Comments
 (0)