Skip to content

Commit

Permalink
fix(datepicker): inert calendar arrow direction in rtl (#4960)
Browse files Browse the repository at this point in the history
Fixes the calendar arrows pointing in the wrong direction in RTL.
  • Loading branch information
crisbeto authored and andrewseguin committed Jun 5, 2017
1 parent 84c80ec commit 22f0ea0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib/datepicker/calendar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ $mat-calendar-next-icon-transform: translateX(-2px) rotate(45deg);
&.mat-calendar-invert {
transform: rotate(180deg);
}

[dir='rtl'] & {
margin: 0 $mat-calendar-arrow-size 0 0;
}
}

.mat-calendar-previous-button,
Expand All @@ -80,6 +84,10 @@ $mat-calendar-next-icon-transform: translateX(-2px) rotate(45deg);
border: 0 solid currentColor;
border-top-width: $mat-calendar-prev-next-icon-border-width;
}

[dir='rtl'] & {
transform: rotate(180deg);
}
}

.mat-calendar-previous-button::after {
Expand Down

0 comments on commit 22f0ea0

Please sign in to comment.