angular / angular/components

bug(material select): Accessibility iOS VoiceOver looses focus when selecting options

未关闭
#33,209 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Accessibility area: material/select gemini-triaged P3
主要语言
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

WCAG issue.

Issue seen with iPhone and VoiceOver on the following versions and browsers
- Safari with angular material 20 and 22
- Chrome with angular material 21 and 22

The main issue is that after a double tap on the dropdown (action to select an element when voice over is enabled), when swiping between elements, the focus continues to move outside the select, instead of browsing each element in the select.

The issue is not reproducible on Mac, nor on a classic desktop, and is restricted to VoiceOver use on an iPhone.
The issue is not reproducible on Android/Talkback neither.

### Reproduction

Angular Material Example page: https://material.angular.dev/components/select/overview
StackBlitz link: https://stackblitz.com/run?file=src%2Fexample%2Fselect-reset-example.ts&startScript=start

Steps to reproduce:
1. activate VoiceOver on your iPhone/iPad device
2. Visit the angular material select menu example page
3. play with the select menus having options list that overlap other focusable DOM elements (another menu, a heading, etc...)

### Expected Behavior

Expected: The screen reader focus should go back to the menu where the option is selected.

### Actual Behavior

Actual: After selection is done in the menu, the screen reader focus is pointing to the element behind the chosen material-option.

### Environment

- Angular: 19, 20, 21, 22
- CDK/Material: select
- Browser(s): Safari/Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): iOS

贡献指南

打开贡献指南

调研方向

首先,在 Angular Material select overview page 或链接的 StackBlitz 上,使用 iOS VoiceOver,并让选项与其他可聚焦元素重叠,以重现该问题。比较在列出的 Safari 和 Chrome 版本中选择一个选项后的焦点顺序;当屏幕阅读器焦点返回 select menu 并继续遍历其选项时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
accessibility, frontend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

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