Skip to content

Commit

Permalink
fix(menu): wrong icon margin in rtl (#4225)
Browse files Browse the repository at this point in the history
Fixes the menu having a wrong margin for the icon in rtl due to the ltr margin not being reset.
  • Loading branch information
crisbeto authored and mmalerba committed Apr 25, 2017
1 parent d3210e7 commit ba6b9bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/core/style/_menu-common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ $mat-menu-overlay-max-width: 280px !default; // 56 * 5
$mat-menu-item-height: 48px !default;
$mat-menu-font-size: 16px !default;
$mat-menu-side-padding: 16px !default;
$mat-menu-icon-margin: 16px !default;

@mixin mat-menu-base() {
@include mat-elevation(8);
Expand Down Expand Up @@ -44,10 +45,11 @@ $mat-menu-side-padding: 16px !default;
}

.mat-icon {
margin-right: 16px;
margin-right: $mat-menu-icon-margin;

[dir='rtl'] & {
margin-left: 16px;
margin-left: $mat-menu-icon-margin;
margin-right: 0;
}
}
}
Expand Down

0 comments on commit ba6b9bb

Please sign in to comment.