bug(COMPONENT): Global density cant be set in angular material 15 mdc
- 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
v14.2.7
### Description
New input fields appear super big compared to previous versions.
Setting global density does not work:
@include mat.all-component-densities('maximum');
or
@include mat.all-component-densities(-3);
or setting it directly inside the theme.
It all does not have any effect.
### Reproduction
Steps to reproduce:
1. use angular material 15
2. use any kind of text input
3. try making it smaller by setting global density higher
### Expected Behavior
Form fields scaling up or down in size
### Actual Behavior
No effect
### Environment
- Angular: 15.0.3
- CDK/Material: 15.0.2
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire le problème dans Angular 15 avec un champ de texte et le mixin mat.all-component-densities documenté, y compris le paramètre au niveau du thème. Suivez les points d’entrée de la densité et du thème pour déterminer pourquoi le paramètre n’a aucun effet ; c’est terminé lorsque les champs de formulaire s’agrandissent ou rétrécissent visiblement comme prévu.
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
- 42/100