angular / angular/components

bug(Chip - chip-grid): Error not announced in screen readers on blur

Đang mở
#28,940 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area: material/chips P3
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?

- [ ] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

Due to timeout on `_blur()` function in `chip-grid.ts` the errors that are shown are not announced.
https://github.com/angular/components/blob/main/src/material/chips/chip-grid.ts#L407

![image](https://github.com/angular/components/assets/116736167/27a31548-6cf9-495c-9ab0-37e0930c1e74)

### Reproduction

StackBlitz link: https://stackblitz.com/edit/qmuavp-wu5wvf?file=src%2Fexample%2Fchips-form-control-example.html
Steps to reproduce:
1. Add required form control
2. Blur from the input

### Expected Behavior

Screen reader should read the error shown on blur.

### Actual Behavior

Screen reader isn't reading the error shown on blur.

### Environment

- Angular: "^17.3.0"
- CDK/Material: "17.3.1"
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu tại src/material/chips/chip-grid.ts, khoảng dòng 407, và tái hiện sự cố bằng ví dụ StackBlitz được liên kết với một điều khiển biểu mẫu bắt buộc. Theo dõi timeout của _blur() và xác minh rằng lỗi hiển thị sau khi mất tiêu điểm được trình đọc màn hình thông báo.

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

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.