angular / angular/components

bug(mat-form-field): when using appearance="outline", input fields increases in height.

Đang mở
#28,228 6 bình luận 4 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

_No response_

### Description

When using mat-form-field with appearance="outline", text input field increases in height after entering a text
Reproduces on mobile devices with iOS 17+

### Reproduction

Steps to reproduce:

1. Open Safari 17 on a mobile device (it is the default browser for iOS 17)
2. Open Angular Material Page at https://material.angular.io/components/form-field/overview
3. Find Outline form field
4. Enter any text. Probably need to clear the field and enter the text again.

### Expected Behavior

The height of the field should be the same as the field without text
![image](https://github.com/angular/components/assets/10838804/e30f248c-4e49-4853-a190-87aada38a1b7)

### Actual Behavior

The field height is different compared to the field without text
![image](https://github.com/angular/components/assets/10838804/40351a90-d07f-4a99-b6a2-a09026faacc6)

### Environment

- Angular: 15-17
- CDK/Material: 15-17
- Browser(s): mobile Safari 17
- Operating System iOS 17.1.2

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 tái hiện vấn đề trên Angular Material form-field overview page trong mobile Safari 17, sử dụng một outline form field và so sánh chiều cao của nó trước và sau khi nhập văn bản. Công việc được xem là hoàn tất khi outlined input giữ nguyên chiều cao dù có hoặc không có văn bản trên iOS 17+, với hồi quy được bao phủ bởi một bài kiểm thử phù hợp của dự án.

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.