angular / angular/components

bug(form-field): mat-form-field text overlap with suffix icon

オープン
#31,108 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
P4
主要言語
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

_No response_

### Description

when having mat-form-field with long label text the text overlap with suffix icon

### Reproduction

StackBlitz link: [https://stackblitz.com/edit/sktdb4nx-laqmu1py?file=src%2Fexample%2Fform-field-appearance-example.html](https://stackblitz.com/edit/sktdb4nx-laqmu1py?file=src%2Fexample%2Fform-field-appearance-example.html)
Steps to reproduce:
1. just put a long text on a mat-form-field with suffix icon

### Expected Behavior

no overlap with long text

### Actual Behavior

![Image](https://github.com/user-attachments/assets/66ac2d5e-3aba-464e-ab13-129f0245a903)

the text overlaps with the icon

### Environment

- Angular: 19.2.15
- CDK/Material: 19.2.15
- Browser(s): chrome
- Operating System (e.g. Windows, macOS, Ubuntu): windows

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

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

調査の方向性

リンクされている StackBlitz のエントリーポイント src/example/form-field-appearance-example.html から始め、長い mat-form-field ラベルとサフィックスアイコンを使って Chrome で重なりを再現します。関連する Angular Material form-field の動作を追跡し、長いテキストがアイコンと重ならなくなったことを確認します。

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

評価

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

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

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