mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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.
This commit is contained in:
committed by
mmalerba
parent
c5be8d32fc
commit
48e4f65187
@@ -24,7 +24,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.mat-menu-item .mat-icon:not([color]),
|
||||
.mat-menu-item .mat-icon:not(.mat-primary):not(.mat-accent):not(.mat-warn),
|
||||
.mat-menu-item-submenu-trigger::after {
|
||||
color: mat-color($foreground, 'icon');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user