bug(form-field): matTextSuffix/matTextPrefix not vertically aligned with label
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
### 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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la reproduction StackBlitz liée dans src/example/form-field-prefix-suffix-example.html et confirmez le décalage vertical entre le label et matTextSuffix/matTextPrefix dans Angular 16. Suivez le rendu et le style de Material form-field à partir de cet exemple, puis vérifiez que le label, le préfixe et le suffixe sont alignés verticalement dans la reproduction.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- design, frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 30/100