File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 41
41
[style.width] ="_cellWidth "
42
42
[style.paddingTop] ="_cellPadding "
43
43
[style.paddingBottom] ="_cellPadding ">
44
- < div class ="mat-calendar-body-cell-content "
45
- [class.mat-calendar-body-selected] ="selectedValue === item.value "
46
- [class.mat-calendar-body-today] ="todayValue === item.value ">
47
- {{item.displayValue}}
48
- </ div >
44
+ < button class ="mat-calendar-body-cell-content "
45
+ mat-button
46
+ [class.mat-calendar-body-selected] ="selectedValue === item.value "
47
+ [class.mat-calendar-body-today] ="todayValue === item.value ">
48
+ {{item.displayValue}}
49
+ </ button >
49
50
</ td >
50
51
</ tr >
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ $mat-calendar-body-cell-content-size: 100% - $mat-calendar-body-cell-content-mar
61
61
// Choosing a value clearly larger than the height ensures we get the correct capsule shape.
62
62
border-radius : 999px ;
63
63
64
+ // Override mat-button defaults
65
+ min-width : initial ;
66
+ border-color : transparent ;
67
+
64
68
@include cdk-high-contrast {
65
69
border : none ;
66
70
}
You can’t perform that action at this time.
0 commit comments