bug(form-field): matTextSuffix/matTextPrefix not vertically aligned with label
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
### Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
_No response_
### Description
The label of a mat-form-field is not vertically aligned with the matTextSuffix or matTextPrefix.

Notice how the suffix and prefix are a couple or so pixels above the label
### Reproduction
StackBlitz link: https://stackblitz.com/edit/t9161j?file=src%2Fexample%2Fform-field-prefix-suffix-example.html
### Expected Behavior
Label to be vertically aligned with both matTextSuffix and matTextPrefix
### Actual Behavior
Label is not vertically aligned with both matTextSuffix and matTextPrefix
### Environment
- Angular: 16
- CDK/Material: ^16.2.7
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS
Guía de contribución
Línea de trabajo
Comienza con la reproducción de StackBlitz enlazada en src/example/form-field-prefix-suffix-example.html y confirma el desplazamiento vertical entre la etiqueta y matTextSuffix/matTextPrefix en Angular 16. Sigue el renderizado y los estilos de Material form-field a partir de ese ejemplo y, después, verifica que la etiqueta, el prefijo y el sufijo estén alineados verticalmente en la reproducción.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- design, frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100