Skip to content

Commit 22f0ea0

Browse files
crisbetoandrewseguin
authored andcommitted
fix(datepicker): inert calendar arrow direction in rtl (#4960)
Fixes the calendar arrows pointing in the wrong direction in RTL.
1 parent 84c80ec commit 22f0ea0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib/datepicker/calendar.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ $mat-calendar-next-icon-transform: translateX(-2px) rotate(45deg);
6363
&.mat-calendar-invert {
6464
transform: rotate(180deg);
6565
}
66+
67+
[dir='rtl'] & {
68+
margin: 0 $mat-calendar-arrow-size 0 0;
69+
}
6670
}
6771

6872
.mat-calendar-previous-button,
@@ -80,6 +84,10 @@ $mat-calendar-next-icon-transform: translateX(-2px) rotate(45deg);
8084
border: 0 solid currentColor;
8185
border-top-width: $mat-calendar-prev-next-icon-border-width;
8286
}
87+
88+
[dir='rtl'] & {
89+
transform: rotate(180deg);
90+
}
8391
}
8492

8593
.mat-calendar-previous-button::after {

0 commit comments

Comments
 (0)