bug(mat-form-field): Input and Select have different height
- 主要言語
- 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
If I put a Input-FormField next to a FormField with a MatSelect, there seems to be a height difference of 0.875px

### Reproduction
Steps to reproduce:
1. Just put both next to each other an check height using DevTools
https://stackblitz.com/edit/angular-3dch32?file=src/app/form-field-overview-example.ts
### Expected Behavior
Both MatFormFields should have the same height.
### Actual Behavior
The MatFormField with the MatSelect inside seems to be 0.875px taller.
### Environment
- Angular:
- CDK/Material: 13.2.6
- Browser(s): Google Chrome 99.0.4844.51
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
コントリビューションガイド
調査の方向性
src/app/form-field-overview-example.ts にあるリンク先の StackBlitz reproduction から始め、Chrome DevTools でレンダリングされた Input と Select の MatFormFields を比較します。Material form-field のスタイルにおける高さの差を追跡します。隣接するフィールドの高さが等しくなり、reproduction に 0.875px の差異が表示されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100