Skip to content

Commit aab55e5

Browse files
committed
fix(material/menu): inconsistent layout of submenu icon
* Fixes that the offset of the submenu icon wasn't identical between LTR and RTL. * Fixes that the layout of a menu with sub-menu was different if the app uses `box-sizing: border-box`. Fixes #29599.
1 parent d32c826 commit aab55e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ $icon-margin: 16px !default;
6363
width: $icon-size;
6464
height: 10px;
6565
fill: currentColor;
66+
box-sizing: content-box;
6667

6768
// We use `padding` here, because the margin can collapse depending on the other content.
6869
padding-left: $item-spacing;
@@ -74,6 +75,7 @@ $icon-margin: 16px !default;
7475
// Invert the arrow direction.
7576
polygon {
7677
transform: scaleX(-1);
78+
transform-origin: center;
7779
}
7880
}
7981

0 commit comments

Comments
 (0)