angular / angular/components

bug(list): list item with activated state miss background color

Ouverte
#26,946 2 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
area: material/list material spec P3
Langage dominant
TypeScript
Étoiles
25k
Forks
6.8k
Merge moyen
1 j 8 h
PR mergées (30 j)
91

Description

### 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

Hi there,
When using `mat-nav-list` with items that have an activated state, the primary color is applied on the activated item but the background color is missing.

### Reproduction

https://stackblitz.com/edit/angular-aovyvr

### Expected Behavior

Having same behavior than : https://material-components.github.io/material-components-web-catalog/#/component/list

(Scroll to "List with activated item" section and click on any list item)

### Actual Behavior

Only the font color is applied

### Environment

- Angular: 15.2.6
- CDK/Material: 15.2.6
- Browser(s): Chrome 112
- Operating System (e.g. Windows, macOS, Ubuntu): Any

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par la reproduction StackBlitz liée et examinez le style de l’état activé de mat-nav-list. Comparez-le avec l’exemple de liste Material Components lié, puis vérifiez qu’un élément activé affiche à la fois la couleur d’arrière-plan attendue et la couleur de texte primaire.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.