angular / angular/components

bug(form-field): Outlined form-field should have enough space to contain floating label

オープン
#31,422 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
area: material/form-field 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 using `outline` appearance for `mat-form-field`, the floating label overflows out of component itself. The `mat-form-field` component should have enough space on top to contain floating label. See below screenshot for reference:

Image

### Reproduction

StackBlitz link: https://stackblitz.com/edit/rxp9hmcc?file=src%2Fexample%2Fform-field-appearance-example.html

### Expected Behavior

The `mat-form-field` component should have enough space (margin) on top to contain floating label.

### Actual Behavior

The `mat-form-field` component does not have enough space (margin) on top to contain floating label.

### Environment

- Angular: 20
- CDK/Material: 20
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS

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

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

調査の方向性

リンクされた StackBlitz の再現とその form-field の外観例から始め、次にフローティングラベルに関係する Angular Material の outlined mat-form-field のレイアウトとスタイルを調査します。Angular 20、Chrome、macOS の報告された環境で、outlined コンポーネントがフローティングラベルのために十分な上部スペースを確保し、オーバーフローしない状態になれば完了です。

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

評価

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

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

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