Skip to content

Commit ba6b9bb

Browse files
crisbetommalerba
authored andcommitted
fix(menu): wrong icon margin in rtl (#4225)
Fixes the menu having a wrong margin for the icon in rtl due to the ltr margin not being reset.
1 parent d3210e7 commit ba6b9bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/core/style/_menu-common.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ $mat-menu-overlay-max-width: 280px !default; // 56 * 5
1111
$mat-menu-item-height: 48px !default;
1212
$mat-menu-font-size: 16px !default;
1313
$mat-menu-side-padding: 16px !default;
14+
$mat-menu-icon-margin: 16px !default;
1415

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

4647
.mat-icon {
47-
margin-right: 16px;
48+
margin-right: $mat-menu-icon-margin;
4849

4950
[dir='rtl'] & {
50-
margin-left: 16px;
51+
margin-left: $mat-menu-icon-margin;
52+
margin-right: 0;
5153
}
5254
}
5355
}

0 commit comments

Comments
 (0)