Chrome complaining about "illegal use of labels"
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### Description
When using `` with `` and `` Chrome prints out the following warning:
**`Incorrect use of `**
I assume this is a new check Chrome added in a recent versions to it's dev tools. Though I guess Angular Material should probably comply to those, if at all possible.
### Reproduction
This can be easily reproduced, even on the Angular Material Page, e.g. on https://material.angular.io/components/form-field/overview (though it appears on any page that uses `` and `` within ``

### Expected Behavior
No error should be displayed
### Actual Behavior
**Incorrect use of ``** is printed for each mat-label within a mat-form-field
### Environment
- Angular: 17.0.1
- CDK/Material: 17.0.1
- Browser(s): Chrome 117
- Operating System: Windows
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo l’avviso nella pagina panoramica di Angular Material per form-field con mat-form-field, mat-select e mat-label, quindi traccia il modo in cui questi componenti eseguono il rendering dell’associazione con la relativa etichetta. Il lavoro è completato quando Chrome non segnala più un uso non corretto dell’attributo for di label in questo scenario.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- accessibility, frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100