That’s because the color input only accepts three attributes: "primary", "accent" or "warn". Hence, you’ll have to style the icons the CSS way:
-
Add a class to style your icon:
.white-icon { color: white; } /* Note: If you're using an SVG icon, you should make the class target the `<svg>` element */ .white-icon svg { fill: white; } -
Add the class to your icon:
<mat-icon class="white-icon">menu</mat-icon>