angular / angular/components

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

Đang mở
#32,734 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area: material/list P3
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Mở ví dụ Navigation List tại material.angular.dev/components/list/examples#list-navigation và kiểm tra cách mục đang hoạt động được tạo kiểu. Được xem là hoàn tất khi mục đang hoạt động giữ nguyên nền secondary-container và sử dụng màu on-secondary-container thay vì on-surface; hãy xác minh hành vi của ví dụ sau khi thay đổi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.