Provide Automatic Binding of FormControl Error Messages and Status to input hints
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
#### 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?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la référence Material Error Patterns et l’intégration de @angular/forms d’Angular décrite dans l’issue. Comme aucun fichier ni test n’est nommé, identifiez les points d’entrée du framework et définissez la couverture pour l’affichage automatique des erreurs/de l’état, la séparation des indications et le traitement visuel demandé ; le travail est considéré comme terminé lorsque le comportement est fourni au niveau du framework plutôt que dupliqué pour chaque champ de saisie.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 25/100