bug(MatList): content projected mat-list-items do not apply mat-mdc-list-item-interactive
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
### 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
14.2.6
### Description
After updating to Angular v15 projecting `mat-list-items` into the `mat-nav-list` does no longer work as expected. The hover effect is not working as the class `mat-mdc-list-item-interactive` is not added.
```
```
### Reproduction
StackBlitz link: https://stackblitz.com/edit/ng5v1w-bbsdvs?file=src%2Fexample%2Flist-overview-example.html
Steps to reproduce:
1. hover over not working items
### Expected Behavior
Content projected items should behave like they were added "directly".
### Actual Behavior
`Mat-list-items` do not get the `mat-mdc-list-item-interactive` class and therefore displayed as non-interactive.
### Environment
- Angular: 15.2.9
- CDK/Material: 15.2.9
- Browser(s): Firefox/Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
Guía de contribución
Línea de trabajo
Comienza con la reproducción vinculada de StackBlitz, especialmente con src/example/list-overview-example.html, y compara los mat-list-items proyectados con los elementos declarados directamente en mat-nav-list. Reproduce el comportamiento de hover que falta y sigue la ruta de proyección del elemento de lista; estará terminado cuando los elementos proyectados reciban mat-mdc-list-item-interactive y se comporten como los elementos añadidos directamente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100