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

Commit

Permalink
Add mixin for changing the icon color of menu item.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 197978853
  • Loading branch information
Googler authored and nshahan committed May 29, 2018
1 parent da1486b commit 0b46bfc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/material_menu/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 0b46bfc

Please sign in to comment.