Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

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
  • Loading branch information
WillsB3 authored and kfranqueiro committed Feb 8, 2019
1 parent e0860dd commit ea15b2f
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 ea15b2f

Please sign in to comment.