Skip to content

Commit fba4a93

Browse files
crisbetommalerba
authored andcommitted
fix(card): incorrectly inverting inset divider in rtl (#12285)
Fixes the inset divider on a card in RTL being pushed outside the card.
1 parent 34a7e38 commit fba4a93

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/card/card.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ $mat-card-header-size: 40px !default;
2929
&.mat-divider-inset {
3030
position: static;
3131
margin: 0;
32+
33+
[dir='rtl'] & {
34+
// Needs to be reset explicitly since the divider set `margin-right` in particular in RTL.
35+
margin-right: 0;
36+
}
3237
}
3338
}
3439

0 commit comments

Comments
 (0)