Skip to content

Commit

Permalink
fix(chips): Flip leading icon margin when used in RTL contexts (#4380)
Browse files Browse the repository at this point in the history
(cherry picked from commit ea15b2f)
  • Loading branch information
WillsB3 authored and acdvorak committed Feb 19, 2019
1 parent 189957b commit 10a384f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/mdc-chips/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

@import "@material/elevation/mixins";
@import "@material/ripple/mixins";
@import "@material/rtl/mixins";
@import "@material/theme/functions";
@import "@material/theme/mixins";
@import "@material/shape/mixins";
Expand Down Expand Up @@ -174,7 +175,10 @@
$left: $mdc-chip-leading-icon-margin-left) {
&.mdc-chip--selected .mdc-chip__checkmark,
.mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden) {
margin: $top $right $bottom $left;
@include mdc-rtl-reflexive-property(margin, $left, $right);

margin-top: $top;
margin-bottom: $bottom;
}
}

Expand Down

0 comments on commit 10a384f

Please sign in to comment.