bug(material/select): mat-select option is not announced on the very first time options are visible
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 67/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- angular, typescript
- Bereich
- accessibility, frontend
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
-
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
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.9k
- Ø Merge
- 2 T. 7 Std.
- Gemergte PRs (30 T.)
- 83
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus angular/components
-
bug(mat-slider): on Firefox, slider thumb is not aligned with cursorEvtl. vergeben @Devyalamaddi hat das vor 4 Tagen übernommen. Offenarea: material/slider P4
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
angular/components#34094 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug(material/sort): hover hint arrow on an unsorted header shows the active sort direction, not the resulting direction after click.Evtl. vergeben @abdul-karim-mia hat das vor 2 Tagen übernommen. Offenarea: material/sort P3
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
angular/components#33933 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug(mat-date-picker): month shown twice in date pickerEvtl. vergeben @PreethiPantangi hat das vor 54 Tagen übernommen. Offenarea: material/datepicker P4
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
angular/components#33763 · 2 Kommentare · 3 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
Bug in table.scss footer cell height: unset instead of footer row height unsetEvtl. vergeben @minwookshin hat das vor 41 Tagen übernommen. Offenarea: material/table P4
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
angular/components#33709 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug(date-adapter): Misleading JSDoc for createDate returns typeEvtl. vergeben @BHUVANSH855 hat das vor 171 Tagen übernommen. Offenarea: material/core P3
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
angular/components#33059 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in angular/components
Ähnliche Issues
-
bug parity
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
WenyuChiou/agent-board#1489 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: bazaar bug complexity: medium
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
accensa/x402-facilitator-stellar#779 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug good first issue P4 size:S web-ui
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 85/100
josephfung/curia#2600 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
cloudflare/partykit#444 ·