Skip to content

Commit

Permalink
fix(button): icon in rtl should have margin right flipped. (#2346)
Browse files Browse the repository at this point in the history
  • Loading branch information
aprigogin authored Mar 6, 2018
1 parent b9000a4 commit 3c04419
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/mdc-button/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

@import "@material/elevation/mixins";
@import "@material/ripple/mixins";
@import "@material/rtl/mixins";
@import "@material/theme/functions";
@import "@material/theme/mixins";
@import "@material/typography/mixins";
Expand Down Expand Up @@ -127,10 +128,11 @@
}

@mixin mdc-button__icon_ {
@include mdc-rtl-reflexive-box(margin, right, 8px);

display: inline-block;
width: 18px;
height: 18px;
margin-right: 8px;
font-size: 18px;
line-height: inherit;
vertical-align: top;
Expand Down
1 change: 1 addition & 0 deletions packages/mdc-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"dependencies": {
"@material/elevation": "^0.28.0",
"@material/ripple": "^0.32.0",
"@material/rtl": "^0.30.0",
"@material/theme": "^0.30.0",
"@material/typography": "^0.28.0"
}
Expand Down

0 comments on commit 3c04419

Please sign in to comment.