<mat-icon> ignores color attribute if inside <button mat-menu-item> #8594
Labels
help wanted
The team would appreciate a PR from the community to address this issue
P4
A relatively minor issue that is not relevant to core functions
Bug, feature request, or proposal:
It's a bug.
What is the expected behavior?
I would expect
<mat-icon color="accent">
in my menu item to respect the color attribute while it is inside of its parent tag.What is the current behavior?
It does not apply the color, here is a screenshot with comparison between
<button mat-button>
which respects the attribute and<button mat-menu-item>
which does not.What are the steps to reproduce?
Here is a bit edited mat-menu plunker with the problem displayed link
What is the use-case or motivation for changing an existing behavior?
I think it should be repaired, since the
<mat-icon>
explicitly supports coloring with color attribute.Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular v5.0.2
@angular/cdk v5.0.0-rc.1
@angular/material v5.0.0-rc.1
TypeScript v2.4.2
IE 11, Firefox 57, Chrome 62
The text was updated successfully, but these errors were encountered: