angular / angular/components

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

Ouverte
#28,940 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
area: material/chips P3
Langage dominant
TypeScript
Étoiles
25k
Forks
6.8k
Merge moyen
1 j 8 h
PR mergées (30 j)
91

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez dans src/material/chips/chip-grid.ts autour de la ligne 407 et reproduisez le problème avec l’exemple StackBlitz lié en utilisant un contrôle de formulaire obligatoire. Suivez le délai d’attente de _blur() et vérifiez que l’erreur affichée après la perte du focus est annoncée par un lecteur d’écran.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
accessibility, frontend
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
48/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.