angular / angular/components

bug(mat-label): mat-label overlap control and does not show ellipsis

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

説明

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

I'm not 100% sure, but it worked before

### Description

The `mat-label` does not wrap the text with ellipsis anymore in the `mat-datepicker`. Instead the text goes over the icon/control itself.
![image](https://user-images.githubusercontent.com/10813063/209828378-07701cfa-ebab-4ea3-958c-593031815d69.png)

```

To long to show all text


```

### Reproduction

Steps to reproduce:
1. Simple add create a mat-datepicker with a mat-label with new version 15.x

[Stackblitz](https://stackblitz.com/edit/angular-cv9udr-pxxmf6?file=src/app/datepicker-overview-example.ts) is available

### Expected Behavior

Before the text was trimmed with ellipsis like this:

![image](https://user-images.githubusercontent.com/10813063/209828983-f1a206c8-511a-4231-b99a-c610291106bb.png)

### Actual Behavior

Now is go outside the control/over the icon:

![image](https://user-images.githubusercontent.com/10813063/209828378-07701cfa-ebab-4ea3-958c-593031815d69.png)

### Environment

- Angular: 15.0.4
- CDK/Material: 15.0.3
- Browser(s): (Chrome, Edge, Firefox)
- Operating System: MacOS

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

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

調査の方向性

リンクされている StackBlitz の再現手順から始め、Angular 15 における mat-datepicker と mat-form-field のラベルの動作を以前のバージョンと比較します。datepicker toggle の横に mat-label がどのようにレンダリングされるかを追跡し、長いラベルがコントロールと重ならずに省略記号で表示されることを確認して、再現したケースのリグレッションカバレッジを追加します。

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

評価

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

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

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