angular / angular/components

bug(material): activated nav-list-item font color is not readable in dark mode

オープン
#27,696 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
Accessibility area: theming P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされた StackBlitz の再現例を開き、ダークテーマを有効にした状態での Angular Material sidenav/nav-list の動作を調査してください。アクティブ化された項目の前景色と背景色を確認し、そのうえで、完了した変更が再現されたシナリオで指定された最小コントラスト要件を満たしていることを確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
accessibility, design, frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。