bug(mat-list-item): Color of mat-icon in mat-list does not get applied
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
### Is this a regression?
- [X] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
15.1.6
### Description
Setting the color input on the mat-icon in a mat-list-item does not get applied. The color of the icon gets overridden by the class .mat-mdc-list-item-icon. Before the default color could be overriden.
### Reproduction
Steps to reproduce:
1. Check List example in 15.1.6: https://stackblitz.com/edit/angular-o9oxb4
2. Example in 15.2.2: https://stackblitz.com/edit/angular-wdvemx
### Expected Behavior
Configured color input of mat-icon should be applied.
### Actual Behavior
Configured color input of mat-icon does not get applied and because it gets overriden.
### Environment
- Angular: 15
- CDK/Material: 15.2.2
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS
Beitragsleitfaden
Rechercherichtung
Beginne mit den verlinkten StackBlitz List-Beispielen und vergleiche das Verhalten von mat-list-item zwischen den Versionen 15.1.6 und 15.2.2, mit Fokus auf die Farbe von mat-icon und die Klasse .mat-mdc-list-item-icon. Als erledigt gilt die Aufgabe, wenn eine konfigurierte mat-icon-Farbe in der aktuellen Version wie in 15.1.6 angewendet wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100