From 0b46bfcebe61f47e92446aa11e6085be62e5dfd1 Mon Sep 17 00:00:00 2001 From: Googler Date: Thu, 24 May 2018 17:04:53 -0700 Subject: [PATCH] Add mixin for changing the icon color of menu item. PiperOrigin-RevId: 197978853 --- lib/material_menu/_mixins.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/material_menu/_mixins.scss b/lib/material_menu/_mixins.scss index ee4d8e5a7..d0a22a240 100644 --- a/lib/material_menu/_mixins.scss +++ b/lib/material_menu/_mixins.scss @@ -88,3 +88,11 @@ } } } + +// Changes the icon color of .menu-item. $selector should be one of the css +// classes passed in through MenuItem. +@mixin menu-item-icon-color($selector, $color) { + ::ng-deep #{$selector}.menu-item material-icon.material-list-item-primary { + color: $color; + } +}