You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The color variants are defined by the Material spec which doesn't include an error variant. The way to do it would be to define a theme with your error colors and pass it to mat.button-theme like:
I have generated the color palette with ng generate @angular/material:m3-theme, and it has generated an error palette alongside with primary, tertiary, secondary, neutral. I don't have an entire theme for the error colors, just that palette.
Can this be achieved for icon buttons and fabs without defining a whole error theme and just using the error colors from $theme?
Is this a regression?
The previous version in which this bug was not present was
No response
Description
Missing color-variant error for mat-fab:

Usage:
Error on any kind of color-variant for mat-icon-button:

Usage:
Reproduction
https://stackblitz.com/edit/67r7jk?file=src%2Ftheme.scss
Expected Behavior
all color variants work for all components
Actual Behavior
different errors in different use cases
Environment
The text was updated successfully, but these errors were encountered: