[FormField] Add option to allow hint to be shown only when focused
- 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:
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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par l’implémentation de Angular Material FormField et suivez la manière dont le texte d’aide est actuellement rendu. Confirmez les états avec et sans focus attendus pour l’option, puis vérifiez que l’indication est masquée lorsqu’elle n’a pas le focus et reste visible lorsqu’elle l’a.
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é
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100