angular / angular/components

bug(material/list): Whitespace before the content in list in v15

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

v14

### Description

In your html template, if you break line, a blank space will render inside the content of your list item line.

### Actual Behavior

![image](https://user-images.githubusercontent.com/12090931/205303458-e4693251-797f-4c7b-aeb0-e6c675b2786a.png)

![image](https://user-images.githubusercontent.com/12090931/205303511-8a558b08-ebec-4812-b5f4-c9e030ab7856.png)

![image](https://user-images.githubusercontent.com/12090931/205303792-0cd975b4-57b9-434c-9a69-b19e4491c60b.png)

---------

#### This Works, but my prettier configuration doesn't allow it

![image](https://user-images.githubusercontent.com/12090931/205303609-bf6fadec-8f7b-4546-9670-21f8778e8b24.png)

![image](https://user-images.githubusercontent.com/12090931/205303647-5b755fb1-2e80-4d13-a3f7-0a4cc2f953ef.png)

![image](https://user-images.githubusercontent.com/12090931/205303718-76db51d2-af20-4bda-a03a-74ad84c3f90c.png)

### Environment

- Angular: v15
- CDK/Material: v15
- Browser(s): Chrome

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 trường hợp danh sách Angular Material trong issue: đặt nội dung của mục danh sách trên một dòng mới trong template Angular v15 và so sánh khoảng trắng được render với v14. Được xem là hoàn tất khi dấu ngắt dòng không còn tạo ra khoảng trắng ở đầu không mong muốn và định dạng được tài liệu hóa vẫn có thể sử dụng.

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
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.