angular / angular/components

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

オープン
#26,164 コメント 8 件 リアクション 8 件 担当者 0 名 GitHub で見る
area: material/list P2 regression
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、issue にある Angular Material のリストのケースを再現します。Angular v15 のテンプレートでリスト項目の内容を新しい行に配置し、レンダリングされた空白を v14 と比較します。改行によって不要な先頭スペースが生成されなくなり、ドキュメントに記載されたフォーマットを引き続き使用できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。