angular / angular/components

bug(mat-navigation-list): Navigation List active items should have on-secondary-container color

未关闭
#32,734 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area: material/list P3
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

### Description

Currently, Navigation List active item has a secondary-container background, but does not use on-secondary-container color, which we find erroneous

### Reproduction

https://material.angular.dev/components/list/examples#list-navigation

### Expected Behavior

Navigation List active items should have color of on-secondary-container, since they have a background color of secondary-container

### Actual Behavior

Navigation List items do not update their color when set to active and remain on-surface even though their background is no longer surface

### Environment

- Angular: v21
- CDK/Material: v21
- Browser(s): any
- Operating System (e.g. Windows, macOS, Ubuntu): any

贡献指南

打开贡献指南

调研方向

打开 material.angular.dev/components/list/examples#list-navigation 中的 Navigation List 示例,并检查活动项的样式。完成标准是活动项保留其 secondary-container 背景,并使用 on-secondary-container 颜色而不是 on-surface;更改后验证示例的行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。