Skip to content

Commit

Permalink
fix(card): incorrectly inverting inset divider in rtl (#12285)
Browse files Browse the repository at this point in the history
Fixes the inset divider on a card in RTL being pushed outside the card.
  • Loading branch information
crisbeto authored and mmalerba committed Jul 29, 2018
1 parent 34a7e38 commit fba4a93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ $mat-card-header-size: 40px !default;
&.mat-divider-inset {
position: static;
margin: 0;

[dir='rtl'] & {
// Needs to be reset explicitly since the divider set `margin-right` in particular in RTL.
margin-right: 0;
}
}
}

Expand Down

0 comments on commit fba4a93

Please sign in to comment.