bug(mat-label): mat-label overlap control and does not show ellipsis
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### Is this a regression?
- [X] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
I'm not 100% sure, but it worked before
### Description
The `mat-label` does not wrap the text with ellipsis anymore in the `mat-datepicker`. Instead the text goes over the icon/control itself.

```
To long to show all text
```
### Reproduction
Steps to reproduce:
1. Simple add create a mat-datepicker with a mat-label with new version 15.x
[Stackblitz](https://stackblitz.com/edit/angular-cv9udr-pxxmf6?file=src/app/datepicker-overview-example.ts) is available
### Expected Behavior
Before the text was trimmed with ellipsis like this:

### Actual Behavior
Now is go outside the control/over the icon:

### Environment
- Angular: 15.0.4
- CDK/Material: 15.0.3
- Browser(s): (Chrome, Edge, Firefox)
- Operating System: MacOS
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dalla riproduzione StackBlitz collegata e confronta il comportamento delle label di mat-datepicker e mat-form-field in Angular 15 con quello della versione precedente. Traccia il modo in cui mat-label viene renderizzato accanto al datepicker toggle, quindi verifica che una label lunga venga abbreviata con i puntini di sospensione senza sovrapporsi al controllo e aggiungi una copertura di regressione per il caso riprodotto.
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
- 35/100