Skip to content

Commit bbadd01

Browse files
mmalerbaandrewseguin
authored andcommitted
fix(datepicker): center date text properly on android (#5923)
1 parent a85703b commit bbadd01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/datepicker/calendar-body.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ $mat-calendar-body-cell-content-size: 100% - $mat-calendar-body-cell-content-mar
5050
width: $mat-calendar-body-cell-content-size;
5151
height: $mat-calendar-body-cell-content-size;
5252

53+
// Prevents text being off-center on Android.
54+
line-height: 1;
55+
5356
border-width: $mat-calendar-body-cell-content-border-width;
5457
border-style: solid;
5558

0 commit comments

Comments
 (0)