Provide Automatic Binding of FormControl Error Messages and Status to input hints
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
#### Bug, feature request, or proposal:
This is a feature request.
This is related to #348, but is specifically asking for the material guidance to be a part of the framework, integrating with standard functionality of @angular/forms.
#### What is the expected behavior?
Looking at [Material Error Patterns](https://material.io/guidelines/patterns/errors.html), there seems to be a standard behavior of inlining form error message into the hint area (with a specific color).

It also supports separating the existing hint from the error message via a comma.

#### What is the current behavior?
Error state and messages are not handled.
#### What are the steps to reproduce?
There is nothing to show as this is feature that is yet to be implemented. [Material Error Patterns](https://material.io/guidelines/patterns/errors.html) should provide the expected behavior and visual treatment.
#### What is the use-case or motivation for changing an existing behavior?
The general gist is that if everyone were to follow the guidelines from material.io, you would end up with a fair amount of duplicate code for every input. The pervasiveness of the desired functionality seems like a prime candidate for handling at the framework level.
#### Which versions of Angular, Material, OS, browsers are affected?
All
#### Is there anything else we should know?
コントリビューションガイド
調査の方向性
まず Material Error Patterns のリファレンスと、issue で説明されている Angular の @angular/forms 統合から始めます。ファイルやテストが指定されていないため、framework のエントリーポイントを特定し、エラー/ステータスの自動表示、ヒントの分離、要求されたビジュアル処理についてカバレッジを定義します。完了の条件は、各入力ごとに重複して実装するのではなく、framework レベルでその動作が提供されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100