Skip to content

Commit d0cb077

Browse files
glenstaestinayuangao
authored andcommitted
fix(menu): Set menu-item icon color only when not set on mat-icon (#8614)
* fix(menu): Set menu-item icon color if not set on mat-icon Set the theme icon color only if the `color` input property was not set on the `mat-icon` component. Fixes #8594 * mat-menu-item with mat-icon[color] unit tests Add unit tests for setting the mat-icon[color] attribute on a menu item * Make ItemIconColorsMenu more clear Related to #8594 * Fix linting issues * Fix linting * Removed "CSS engine tests"
1 parent e939ea7 commit d0cb077

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
@@ -20,7 +20,7 @@
2020
}
2121
}
2222

23-
.mat-menu-item .mat-icon,
23+
.mat-menu-item .mat-icon:not([color]),
2424
.mat-menu-item-submenu-trigger::after {
2525
color: mat-color($foreground, 'icon');
2626
}

0 commit comments

Comments
 (0)