angular / angular/components

bug(MatSelect): MatSelect in a CdkOverlay panel is not accessible to screen readers

未关闭
#28,709 1 条评论 1 个 reaction 已指派 1 人 已被 @zarend 认领 在 GitHub 查看
Accessibility area: cdk/overlay area: material/dialog P2
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

### 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

Using a screenreader to interact with a MatSelect dropdown inside an overlay panel prevents it from reading out the options

### Reproduction

StackBlitz link: https://stackblitz.com/edit/bqqfav-gaxbdf
Steps to reproduce:
1. Active VoiceOver or other screen reader
2. Using a keyboard, click on the 'Launch dialog' button
3. Using a keyboard, navigate to the select and attempt to read the options

image

### Expected Behavior

VoiceOver should read out the options, much like it does when interacting with the examples at https://material.angular.io/components/select/examples

### Actual Behavior

VoiceOver does not read out the options. It only reads "expanded, completion selected". Pressing ctrl+option+space causes it to read "confirm Favorite pet, list box pop-up, Menu popup combobox".

### Environment

- Angular: 17.2.0
- Browser(s): Google Chrome
- Operating System: macOS
- Screen reader: VoiceOver

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。