[FormField] Add option to allow hint to be shown only when focused
- 主要言語
- 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