bug(material/form-field): A density of -2 or lower breaks labels
- 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
When setting a density of -4 on a form field with a `matSuffix`, the text is not aligned.
density -4
density 0
### Reproduction
StackBlitz link: https://stackblitz.com/edit/uprkxp?file=src%2Ftheme.scss
Steps to reproduce:
1. Set density of -4
2. Observe how input text is not vertically aligned any longer
### Expected Behavior
Input text should always be vertically aligned, regardless of density.
### Actual Behavior
Density -4 does not vertically align input text
### Environment
Angular CLI: 15.1.6
Node: 18.13.0
Package Manager: npm 8.19.3
OS: darwin x64
Angular: 15.1.5
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1501.6
@angular-devkit/build-angular 15.1.6
@angular-devkit/core 15.1.6
@angular-devkit/schematics 15.1.6
@angular/cli 15.1.6
@schematics/angular 15.1.6
rxjs 7.8.0
typescript 4.9.5
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la reproduction StackBlitz liée et son src/theme.scss, définissez la densité du champ de formulaire sur -4 et comparez-la à la densité 0. C’est terminé lorsque le texte saisi reste aligné verticalement lorsqu’un matSuffix est présent avec une densité de -2 ou inférieure.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100