bug(list): matListItemIcon color is wrong for disabled list items
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
### Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
_No response_
### Description
The color of `matListItemIcon` is wrong for disabled list items. It is different to the [list component from material-web](https://material-web.dev/components/list)
### Reproduction
StackBlitz link: https://stackblitz.com/edit/ir6zfh?file=src%2Fexample%2Flist-overview-example.html
Steps to reproduce:
1. Hover over "Item 2 (disabled)"
2. See the `matListItemIcon` changing its color
### Expected Behavior
The color of the `matListItemIcon` stays constant if the list item is disabled.
### Actual Behavior
The color of the `matListItemIcon` is changing.
### Environment
Angular CLI: 17.0.0
Node: 18.18.0
Package Manager: yarn 1.22.19
OS: linux x64
Angular: 17.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router, ssr
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.1700.0
@angular-devkit/build-angular 17.0.0
@angular-devkit/core 17.0.0
@angular-devkit/schematics 17.0.0
@angular/cdk 17.0.1
@angular/material 17.0.1
@angular/material-moment-adapter 17.0.1
@schematics/angular 17.0.0
rxjs 7.4.0
typescript 5.2.2
zone.js 0.14.0
Beitragsleitfaden
Rechercherichtung
Beginne mit der verknüpften StackBlitz-Reproduktion und untersuche die Angular-Material-Listenimplementierung auf das Styling von matListItemIcon. Vergleiche das deaktivierte Element mit dem Listenverhalten von material-web und überprüfe anschließend, dass das Überfahren eines deaktivierten Elements die Symbolfarbe nicht mehr ändert.
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