angular / angular/components

bug(autocomplete, select): should leave extra space when positioned above outlined form-field

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

_No response_

### Description

When the autocomplete or select is positioned above an outlined form-field (due to insufficient space on the bottom), it overlaps the label. Ideally we would add some additional space when positioning above so that the label is still legible.

### Reproduction

StackBlitz link: https://stackblitz.com/edit/6pam3o
Steps to reproduce:
1. Click inside form-field
2. Observe that autocomplete overlaps the label

### Expected Behavior

Label should be legible while select/autocomplete is open

### Actual Behavior

select/autocomplete obscures label

### Environment

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

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, sử dụng Angular 16 và CDK/Material 16, sau đó kiểm tra hành vi định vị của autocomplete và select đối với một outlined form-field khi overlay mở ở phía trên nó. Xác nhận phần chồng lấn được thể hiện trong bản tái hiện và kiểm tra rằng nhãn vẫn dễ đọc khi vấn đề được khắc phụ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.