angular / angular/components

bug(form-field): mat-label overlap mat-suffix

Đang mở
#28,743 8 bình luận 1 reaction 0 người được giao Xem trên GitHub
area: material/form-field P2
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

15.x

### Description

When the mat-label is too long, it overlap the mat-suffix of the mat-form-field.

### Reproduction

- Create a mat-form-field
- Place a mat-suffix inside of it
- Place a long mat-label inside of it

### Expected Behavior

![Capture d’écran 2024-03-19 084043](https://github.com/angular/components/assets/16737025/f2a0e39d-548d-42ff-a487-0cf7339f9389)

### Actual Behavior

![Capture d’écran 2024-03-19 084335](https://github.com/angular/components/assets/16737025/3e33e3f4-2b4b-4a34-b28e-ba54e3553026)

### Environment

- Angular: 17.x
- CDK/Material: Material
- Browsers: Firefox & Google Chrome
- Windows

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

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

Hướng nghiên cứu

Tái hiện một mat-form-field chứa mat-suffix và mat-label dài bằng Angular 17, sau đó so sánh kết quả trong Firefox và Chrome với hành vi được báo cáo của Angular 15. Được xem là hoàn tất khi label không còn chồng lên suffix và form-field vẫn có thể sử dụng được.

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.