Skip to content

Commit 27df9cf

Browse files
committed
fix(material/datepicker): use direction-agnostic text-align
Avoids some extra styles by using `text-align: start` instead of having to flip it manually for RTL.
1 parent d0618bc commit 27df9cf

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/material/datepicker/calendar-body.scss

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ $_tokens: (tokens-mat-datepicker.$prefix, tokens-mat-datepicker.get-token-slots(
5757
.mat-calendar-body-label {
5858
height: 0;
5959
line-height: 0;
60-
text-align: left;
60+
text-align: start;
6161
padding-left: $calendar-body-label-side-padding;
6262
padding-right: $calendar-body-label-side-padding;
6363

@@ -424,9 +424,3 @@ $_tokens: (tokens-mat-datepicker.$prefix, tokens-mat-datepicker.get-token-slots(
424424
}
425425
}
426426
}
427-
428-
[dir='rtl'] {
429-
.mat-calendar-body-label {
430-
text-align: right;
431-
}
432-
}

0 commit comments

Comments
 (0)