angular / angular/components

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

Open
#33,775 0 comments 0 reactions 0 assignees View on GitHub
Accessibility area: material/form-field gemini-triaged P3
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

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

Contributor guide

Open the contributing guide

Research direction

Start with the form-field label reproduction at https://material.angular.dev/components/form-field/overview#form-field-label and reproduce it in Chrome with NVDA while the hide required marker option is enabled. Trace the form-field error announcement behavior and verify that the error message is announced once rather than twice.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
accessibility, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.