bug(mat-error): mat-error presentation is announces twice with NVDA screen reader
- Ngôn ngữ chính
- TypeScript
- Star
- 25k
- Fork
- 6.8k
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 91
Mô tả
### Is this a regression?
- [x] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
@angular/material 18.1.0 did not have this behavior
### Description
Hi,
I am using NVDA v2025.3 (latest version) for accessibility testing and have noticed that the mat-error presentation is announced twice by the screen reader.
The above example demonstrates the issue from the angular material docs:
https://material.angular.dev/components/form-field/overview#error-messages
### Reproduction
Steps to reproduce:
1. Open screen reader and set focus on an angular material mat-form-field with mat-error presented on blur
2. Tab away from the field to trigger error message presentation
3. Observe announcements and notice that mat-error text is read twice.
### Expected Behavior
mat-errors should only be announced a single time by the screen reader.
### Actual Behavior
mat-error is announced twice by the screen reader.
### Environment
- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với ví dụ về thông báo lỗi của Angular Material form-field được liên kết trong báo cáo và tái hiện hành vi bằng NVDA, tập trung vào các lỗi được hiển thị khi trường mất tiêu điểm. So sánh các thông báo với lần đọc đơn dự kiến và xác định đường dẫn trình bày lỗi form-field liên quan; công việc được xem là hoàn tất khi mat-error chỉ được thông báo một lần mà không làm hồi quy hành vi đã được ghi nhận.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- angular, typescript
- Lĩnh vực
- accessibility, frontend
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100