fix(card): incorrectly inverting inset divider in rtl (#12285)

Fixes the inset divider on a card in RTL being pushed outside the card.
This commit is contained in:
Kristiyan Kostadinov
2018-07-29 06:45:42 +02:00
committed by mmalerba
parent 34a7e38214
commit fba4a9369c
+5
View File
@@ -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;
}
}
}