MatFormField hint and error alignment wrong when using a matPrefix icon
- 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:
Bug
#### What is the expected behavior?
Hint and error text are horizontally aligned with input text and both are indented if a matPrefix icon is present.
#### What is the current behavior?
The hint and error text are never indented when matPrefix is used.
#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-h1lpum?embed=1&file=app/form-field-appearance-example.html
#### What is the use-case or motivation for changing an existing behavior?
Material Design guidelines are not being followed.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 6.0.5, Angular Material 6.2.1
#### Is there anything else we should know?
The alignment spec is not explicitly mentioned, but the anatomy diagram is clear: https://material.io/design/components/text-fields.html#anatomy.
Guía de contribución
Línea de trabajo
Comienza con la reproducción vinculada de StackBlitz e inspecciona el comportamiento de mat-form-field cuando hay un icono matPrefix. Se considera terminado cuando el texto de ayuda y de error se alinean horizontalmente con el texto de entrada y tienen una sangría coherente con el prefijo, preservando el comportamiento existente del campo de formulario.
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
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100