bug(material): activated nav-list-item font color is not readable in dark mode
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### 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)
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Apri la riproduzione StackBlitz collegata e analizza il comportamento di sidenav/nav-list di Angular Material con il tema scuro abilitato. Verifica i colori di primo piano e di sfondo dell'elemento attivato, quindi conferma che la modifica completata soddisfi il requisito minimo di contrasto indicato nello scenario riprodotto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- accessibility, design, frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100