angular / angular/components

feat(cdk/drag-drop): Proposal for Keyboard and Screenreader Accessibility

Ouverte
#25,468 7 commentaires 19 réactions 0 personnes assignées Voir sur GitHub
area: cdk/drag-drop feature P3
Langage dominant
TypeScript
Étoiles
25k
Forks
6.8k
Merge moyen
1 j 8 h
PR mergées (30 j)
91

Description

### Feature Description

Hello everyone,

Accessibility is nowadays a very important topic and therefore I think it is essential to get as much work as possible done directly in the framework. Therefore is my proposal to make the Angular CDK Drag and Drop accessible to everyone! My ideas so far

- Reusing as much code as possible (maybe renaming the functions if selected)
- Adding aria roles if necessary
- tabindex to all grabbable items
- Space to activate moving by keyboard (then activly moving by arrow keys with small movement). Further ideas/improvement: movement to fix containers or movement by bigger (user defined) steps!
- Escape to quit movement
- Implementation according to https://www.w3.org/wiki/PF/ARIA/BestPractices/DragDrop

First Code proposal (Please don't look to specific, is my first proposal, Improvements needed):
https://github.com/angular/components/commit/1c50475095a7ecf3c1f142c820d3f5a71f0070b8

Is is meaningful to do more work on it? Please be so kind and share your meanings with me!

Best regards,

Martin

### Use Case

Drag and Drop Accessibility!

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par le point d’entrée Angular CDK Drag and Drop et examinez la proposition de code liée ainsi que les bonnes pratiques W3C ARIA DragDrop. Clarifiez le comportement accepté pour le clavier, le lecteur d’écran, le focus et le déplacement avant d’identifier le périmètre de l’implémentation et des tests ; le travail est considéré comme terminé lorsqu’un design d’accessibilité est convenu et que le comportement des interactions proposées est vérifié.

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
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
Calme
Clarté
À clarifier
Accessibilité débutants
30/100

Recevez les nouvelles issues par e-mail

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