Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 0b46bfc

Browse files
Googlernshahan
authored andcommitted
Add mixin for changing the icon color of menu item.
PiperOrigin-RevId: 197978853
1 parent da1486b commit 0b46bfc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/material_menu/_mixins.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,11 @@
8888
}
8989
}
9090
}
91+
92+
// Changes the icon color of .menu-item. $selector should be one of the css
93+
// classes passed in through MenuItem.
94+
@mixin menu-item-icon-color($selector, $color) {
95+
::ng-deep #{$selector}.menu-item material-icon.material-list-item-primary {
96+
color: $color;
97+
}
98+
}

0 commit comments

Comments
 (0)