Skip to content

Commit 2af9c35

Browse files
crisbetommalerba
authored andcommitted
fix(menu): svg icons not aligned inside menu item (#10837)
Fixes SVG icons placed inside a `mat-menu-item` not being aligned vertically. Fixes #10832.
1 parent 5df8d01 commit 2af9c35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ $mat-menu-icon-margin: 16px !default;
4747
margin-right: $mat-menu-icon-margin;
4848
vertical-align: middle;
4949

50+
svg {
51+
vertical-align: top;
52+
}
53+
5054
[dir='rtl'] & {
5155
margin-left: $mat-menu-icon-margin;
5256
margin-right: 0;

0 commit comments

Comments
 (0)