angular / angular/components

material/form-field(outline): text is misaligned vertically when no mat-label defined

オープン
#17,771 コメント 6 件 リアクション 1 件 担当者 0 名 GitHub で見る
area: material/form-field feature material spec P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

#### Reproduction

https://angular-input-outline.stackblitz.io

Steps to reproduce:
1. Type into the input


#### Expected Behavior

The text should be vertically aligned in the input box.

#### Actual Behavior

The text is misaligned vertically.

#### Environment

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

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

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

調査の方向性

リンクされた StackBlitz の再現から始め、mat-label が定義されていない場合に説明されている mat-form-field の動作を比較します。再現を起点に Angular Material の form-field 実装を追跡し、その後 Chrome と Firefox で結果を確認します。mat-label なしで入力ボックス内の入力テキストが垂直方向に整列されていれば完了です。

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

評価

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

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

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