bug(material/select): mat-select option is not announced on the very first time options are visible
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 67/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- angular, typescript
- Ambito
- accessibility, frontend
Direzione di ricerca
Start by reading the Angular Material mat-select implementation and its accessibility tests for announcing the active option when the panel opens. Reproduce the issue with the linked reactive-form example and a screen reader, then trace how the initially selected option is announced on open versus after navigating away and back. Done means the selected state is announced on the first open; add or update a regression test for that behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
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
No response
Description
When a mat-select has an initial value (for example, set through a reactive form control) and the user opens it for the first time, the screen reader reads the active option's text but does not announce it as "selected". If the user moves to different options and returns back to the selected one, the same option is announced correctly as "selected".
Reproduction
StackBlitz link: https://stackblitz.com/edit/3j8yhubg?file=src%2Fexample%2Fselect-reactive-form-example.ts
Steps to reproduce:
- Create a mat-select bound to a reactive FormControl with an initial value:
- Turn on a screen reader (VoiceOver).
- Tab to the select and open it with Space, Enter or Alt+Down
- Listen to the announcement for the highlighted option.
- Go to next option.
- Return to previous option and listen to the announcement. "Selected" is announced for the option which is selected.
Expected Behavior
"Selected" should be announced on the very first time the panel of options open.
Actual Behavior
"Selected" is not announce on the very first time the panel opens and the user is on the selected item. It is announced when the user goes to some different options and returns to the selected item.
Environment
- Angular: 21.2.22
- CDK/Material: 21.2.14
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): MacOS
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.9k
- Merge medio
- 2g 7h
- PR unite (30g)
- 83
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di angular/components
-
bug(mat-slider): on Firefox, slider thumb is not aligned with cursorForse già presa @Devyalamaddi l’ha presa 4 giorni fa. Apertaarea: material/slider P4
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
angular/components#34094 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug(material/sort): hover hint arrow on an unsorted header shows the active sort direction, not the resulting direction after click.Forse già presa @abdul-karim-mia l’ha presa 2 giorni fa. Apertaarea: material/sort P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
angular/components#33933 ·
I maintainer di solito rispondono entro 1 giorno
-
bug(mat-date-picker): month shown twice in date pickerForse già presa @PreethiPantangi l’ha presa 54 giorni fa. Apertaarea: material/datepicker P4
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
angular/components#33763 · 2 commenti · 3 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Bug in table.scss footer cell height: unset instead of footer row height unsetForse già presa @minwookshin l’ha presa 41 giorni fa. Apertaarea: material/table P4
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
angular/components#33709 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug(date-adapter): Misleading JSDoc for createDate returns typeForse già presa @BHUVANSH855 l’ha presa 171 giorni fa. Apertaarea: material/core P3
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
angular/components#33059 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di angular/components
Issue simili
-
bug parity
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
WenyuChiou/agent-board#1489 ·
I maintainer di solito rispondono entro 1 giorno
-
area: bazaar bug complexity: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
accensa/x402-facilitator-stellar#779 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue P4 size:S web-ui
Difficoltà 2/5 Mezza giornata Idoneità per principianti 85/100
josephfung/curia#2600 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
cloudflare/partykit#444 ·