angular / angular/components

bug(Toolbar): Defined background colors does not get applied with version 17.3.1

Đang mở
#28,805 19 bình luận 12 reaction 0 người được giao Xem trên GitHub
area: material/toolbar docs 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ả

### Is this a regression?

- [X] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

16

### Description

If you go to the official `Angular Material` docs, and select component `Toolbar`, examples tab, you see in action the usage of toolbar with a color defined such as `primary` but you don't see any color applied to it.

If you open up any of the examples to Stackblitz, you can clearly see that any of the defined colors "warn", "primary", "accent" does not get applied in the toolbar property

```

...

...

...

```

![image](https://github.com/angular/components/assets/12599968/83e8324d-2976-4e9a-8300-2a134b55c1b2)

### Reproduction

StackBlitz link: https://stackblitz.com/edit/ga5498?file=src%2Fexample%2Ftoolbar-overview-example.html

Steps to reproduce:
1. Specify one of the colors predefined such as `warn`, `primary`, `accent` to the toolbar component

### Expected Behavior

If the developer specifies a color to a toolbar, either a predefined one or a custom one, then the color should take effect into the material component (e.g toolbar)

### Actual Behavior

Specifying any of the predefined colors does not get applied in the toolbar component

### Environment

- Angular: 17.3.0
- CDK/Material: 17.3.1
- Browser(s): Firefox 124.01 or Chrome 123.0.6312.86
- Operating System (e.g. Windows, macOS, Ubuntu): Linux Mint

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

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

Hướng nghiên cứu

Bắt đầu với bản tái hiện StackBlitz được liên kết và tệp src/example/toolbar-overview-example.html của nó, sau đó so sánh hành vi của thanh công cụ giữa các phiên bản Angular Material được báo cáo. Xác minh các màu primary, accent, warn và custom, đồng thời xác định điểm vào phù hợp của dự án hoặc bài kiểm tra liên quan trước khi thay đổi bất cứ điều gì. Hoàn thành khi thanh công cụ áp dụng các màu được chỉ định và hồi quy được bao phủ bởi một kiểm tra đạt.

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
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
Đặc tả rõ ràng
Mức phù hợp với người mới
48/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.