Skip to content

Commit ca3b093

Browse files
crisbetommalerba
authored andcommitted
fix(menu): unable to set icon color dynamically (#14161)
Fixes not being able to set the color of a `mat-icon` inside a `mat-menu-item` dynamically. Fixes #14151.
1 parent a731c68 commit ca3b093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/menu/_menu-theme.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525
}
2626

27-
.mat-menu-item .mat-icon:not([color]),
27+
.mat-menu-item .mat-icon:not(.mat-primary):not(.mat-accent):not(.mat-warn),
2828
.mat-menu-item-submenu-trigger::after {
2929
color: mat-color($foreground, 'icon');
3030
}

0 commit comments

Comments
 (0)