angular / angular/components

[FormField] Add option to allow hint to be shown only when focused

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

説明

#### Bug, feature request, or proposal:
Feature request

#### What is the expected behavior?
When the option is specified, the hint/helper text is hidden unless the field has focus.

#### What is the current behavior?
The hint is always displayed unless no hint is used

#### What is the use-case or motivation for changing an existing behavior?
Material Design specifications call for the hint to be either always displayed or displayed on focus only: https://material.io/guidelines/components/text-fields.html#text-fields-layout (see 'Helper text').

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Material v5

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

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

調査の方向性

Angular Material FormField の実装から始め、ヒント/ヘルパーテキストが現在どのように描画されているかを追跡します。オプションに期待されるフォーカス時およびフォーカスなしの状態を確認し、その後、フォーカスがないときはヒントが非表示になり、フォーカスがあるときは表示されたままであることを検証します。

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

評価

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

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

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