bug(COMPONENT): Global density cant be set in angular material 15 mdc
- 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
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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo il problema in Angular 15 con un campo di testo e il mixin documentato mat.all-component-densities, includendo l'impostazione a livello di tema. Traccia i punti di ingresso della densità e del tema per determinare perché l'impostazione non ha effetto; il lavoro è completato quando i campi del modulo si ingrandiscono o si riducono visibilmente come previsto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100