bug(form-field): matTextSuffix/matTextPrefix not vertically aligned with label
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con la riproduzione StackBlitz collegata in src/example/form-field-prefix-suffix-example.html e conferma lo scostamento verticale tra l'etichetta e matTextSuffix/matTextPrefix in Angular 16. Segui il rendering e lo stile di Material form-field partendo da quell'esempio, quindi verifica che l'etichetta, il prefisso e il suffisso siano allineati verticalmente nella riproduzione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- design, frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100