angular / angular/components

bug(form-field): difficult to customize shape with tokens

Đang mở
#31,059 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
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?

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

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

19

### Description

When using mat-form-field in filled appearance, I want to shape the border-radius. I use this token
--mdc-filled-text-field-container-shape: 4px !important;
But it only applies to the top corners and not the bottom corners because this token uses the wrong container to set radius. It sets the radius on a level where the div for hints and errors is also included.
And by that the bottom corners are not set with that token

### Reproduction

StackBlitz link:
Steps to reproduce:
1.
2.

### Expected Behavior

Apply radius also to bottom corners

### Actual Behavior

not applying radius to bottom corners

### Environment

- Angular: 19
- CDK/Material: 19
- Browser(s): firefox
- Operating System (e.g. Windows, macOS, Ubuntu): windows

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

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

Hướng nghiên cứu

Bắt đầu bằng cách kiểm tra kiểu hiển thị filled của Angular Material mat-form-field và cách --mdc-filled-text-field-container-shape được áp dụng. Tái hiện kiểu dáng được báo cáo bằng Angular 19, sau đó truy vết container nào sở hữu các góc dưới; được xem là hoàn tất khi token áp dụng nhất quán bán kính được yêu cầu cho tất cả các góc, kể cả khi có hint hoặc lỗ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, css, typescript
Lĩnh vực
design, frontend
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 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
35/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.