angular / angular/components

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

オープン
#26,946 コメント 2 件 リアクション 2 件 担当者 0 名 GitHub で見る
area: material/list material spec P3
主要言語
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

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

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

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

調査の方向性

リンク先の StackBlitz の再現から始め、mat-nav-list の activated-state スタイルを確認します。リンク先の Material Components のリスト例と比較し、activated item に期待される背景色と primary text color の両方が表示されることを確認します。

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

評価

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

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

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