angular / angular/components

bug(form-field): mat-label overlap mat-suffix

オープン
#28,743 コメント 8 件 リアクション 1 件 担当者 0 名 GitHub で見る
area: material/form-field P2
主要言語
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

15.x

### Description

When the mat-label is too long, it overlap the mat-suffix of the mat-form-field.

### Reproduction

- Create a mat-form-field
- Place a mat-suffix inside of it
- Place a long mat-label inside of it

### Expected Behavior

![Capture d’écran 2024-03-19 084043](https://github.com/angular/components/assets/16737025/f2a0e39d-548d-42ff-a487-0cf7339f9389)

### Actual Behavior

![Capture d’écran 2024-03-19 084335](https://github.com/angular/components/assets/16737025/3e33e3f4-2b4b-4a34-b28e-ba54e3553026)

### Environment

- Angular: 17.x
- CDK/Material: Material
- Browsers: Firefox & Google Chrome
- Windows

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

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

調査の方向性

Angular 17 を使用して、mat-suffix と長い mat-label を含む mat-form-field を再現し、Firefox と Chrome での結果を、報告されている Angular 15 の動作と比較します。mat-label が mat-suffix と重ならず、form-field が引き続き使用可能であれば完了です。

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

評価

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

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

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