Skip to content

Commit 752f560

Browse files
authored
fix(material/menu): invert arrow in RTL (angular#28830)
Fixes a regression from angular#28470 where the nested menu icon isn't being inverted in RTL anymore. Fixes angular#28813.
1 parent da302d2 commit 752f560

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

+7-1
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,18 @@ $icon-margin: 16px !default;
6363
width: $icon-size;
6464
height: 10px;
6565
fill: currentColor;
66+
67+
// We use `padding` here, because the margin can collapse depending on the other content.
6668
padding-left: $item-spacing;
6769

6870
[dir='rtl'] & {
69-
right: auto;
7071
padding-right: $item-spacing;
7172
padding-left: 0;
73+
74+
// Invert the arrow direction.
75+
polygon {
76+
transform: scaleX(-1);
77+
}
7278
}
7379

7480
// Fix for Chromium-based browsers blending in the `currentColor` with the background.

0 commit comments

Comments
 (0)