Skip to content

Commit c53bbba

Browse files
mmalerbatinayuangao
authored andcommitted
cleanup(datepicker): move pane styles from calendar to datepicker-content (#4504)
1 parent fce2868 commit c53bbba

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/lib/datepicker/_datepicker-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
$mat-datepicker-selected-fade-amount: 0.6;
1212
$mat-datepicker-today-fade-amount: 0.2;
1313

14-
.mat-calendar {
14+
.mat-datepicker-content {
1515
background-color: mat-color($background, card);
1616
}
1717

src/lib/datepicker/datepicker-content.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,19 @@ $md-datepicker-touch-max-width: 750px;
1919
$md-datepicker-touch-max-height: 788px;
2020

2121

22+
.mat-datepicker-content {
23+
@include mat-elevation(8);
24+
25+
display: block;
26+
}
27+
2228
.mat-calendar {
2329
width: $md-datepicker-non-touch-calendar-width;
24-
@include mat-elevation(8);
2530
}
2631

2732
.mat-datepicker-content-touch {
33+
@include mat-elevation(0);
34+
2835
display: block;
2936
// make sure the dialog scrolls rather than being cropped on ludicrously small screens
3037
max-height: 80vh;
@@ -41,6 +48,5 @@ $md-datepicker-touch-max-height: 788px;
4148
min-height: $md-datepicker-touch-min-height;
4249
max-width: $md-datepicker-touch-max-width;
4350
max-height: $md-datepicker-touch-max-height;
44-
@include mat-elevation(0);
4551
}
4652
}

0 commit comments

Comments
 (0)