bug(form-field): Outlined form-field should have enough space to contain floating label
- 主要言語
- 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:
### 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