github / github/task-lists-element

Provide alternative for reordering items without dragging with mouse

未关闭
#24 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
152
派生
24
平均合并
1 天 4 小时
30 天内合并 PR
6

描述

Currently there is no keyboard accessible alternative for reordering the task items which prevents assistive technology/ keyboard-only users from accessing the feature.

A number of implementations I've seen like [this example from salesforce-ux][1] enable user to press `SPACE` to move an item around with arrow keys and `SPACE` to place an item. Something to keep in mind for this element is making sure to not interrupt checking of checkbox (which can also be done `SPACE`).

Other references:

[Upcoming WCAG change 2.5.7 Dragging Movements (AA)](https://www.w3.org/WAI/standards-guidelines/wcag/new-in-22/#257-dragging-movements-aa)

[4 major patterns for accessible drag and drop](https://medium.com/salesforce-ux/4-major-patterns-for-accessible-drag-and-drop-1d43f64ebf09)

[1]: https://salesforce-ux.github.io/dnd-a11y-patterns/#/sortB?_k=1lp55f

贡献指南

打开贡献指南

调研方向

No file or test is named in the issue. Start by locating the task-list drag-and-drop and item-reordering entry points, then review how keyboard focus and checkbox activation work. Done means keyboard-only and assistive-technology users can reorder items without dragging, while SPACE still supports checkbox interaction.

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
accessibility, frontend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。