[FormField] Add option to allow hint to be shown only when focused
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
#### 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
Guía de contribución
Línea de trabajo
Comienza por la implementación de Angular Material FormField y sigue cómo se renderiza actualmente el texto de sugerencia/ayuda. Confirma los estados enfocado y no enfocado esperados de la opción y, a continuación, verifica que la sugerencia esté oculta sin foco y siga visible cuando tenga el foco.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- frontend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100