bug(material): activated nav-list-item font color is not readable in dark mode
- 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?
- [ ] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
_No response_
### Description
I have an App that uses a sidenav with a nav-list inside. I want the activated nav-list-item to be noticeable, so I'm using that state, but the default behavior with a dark theme, results in an unreadable font color.
### Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-3qaoos
Steps to reproduce:
1. Open it.
2. See how the first nav list item is activated and barely readable.
### Expected Behavior
The background and font color have a minimum contrast, so the item is readable.
### Actual Behavior
The background and font color do not have a minimum contrast, so the item is not readable.
### Environment
- Angular: 16.1.0
- CDK/Material: 16.1.5
- Browser(s): Chrome 116.0.5845.97 (Official Build) (64-bit)
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 11 (10.0.22621.2134)
Guía de contribución
Línea de trabajo
Abre la reproducción vinculada de StackBlitz e inspecciona el comportamiento de sidenav/nav-list de Angular Material con el tema oscuro habilitado. Verifica los colores de primer plano y de fondo del elemento activado y confirma después que el cambio finalizado cumple el requisito mínimo de contraste indicado en el escenario reproducido.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- accessibility, design, frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100