angular / angular/components

bug(form-field): NVDA reads error message twice when required marker is hidden

未关闭
#33,775 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Accessibility area: material/form-field gemini-triaged P3
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

### Description

When the hide required marker option is turned on, NVDA reads the Form Field error message twice

### Reproduction

https://material.angular.dev/components/form-field/overview#form-field-label

### Expected Behavior

Error message is read out once

### Actual Behavior

Error message is read out twice

### Environment

- Angular: v21
- CDK/Material: v21
- Browser(s): Google Chrome with NVDA on
- Operating System (e.g. Windows, macOS, Ubuntu): Windows

贡献指南

打开贡献指南

调研方向

从 https://material.angular.dev/components/form-field/overview#form-field-label 中表单字段标签的复现开始,并在启用隐藏必填标记选项的情况下,使用 Chrome 和 NVDA 进行复现。跟踪表单字段错误播报的行为,并验证错误消息只播报一次,而不是两次。

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

评估

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

把新 issue 发到你的邮箱

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