本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)75k · #2822

draggable-accessibility

できること

このスキルは、マウスを使えない人も使えるように、Webサイトのドラッグ&ドロップの機能を確認します。移動や並べ替えができる項目を作る開発者向けです。

使う場面

  • ✓利用者がドラッグして並べ替えたり移動したりできる項目が、サイトにあるとき。
  • ✓キーボードの利用者が、ページの項目を動かせないとき。
  • ✓スクリーンリーダーに、ドラッグの操作を読み上げさせたいとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/draggable-accessibility/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/draggable-accessibility/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のページのドラッグ&ドロップのリストを、キーボードで操作できるようにしてもらえますか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、矢印キーやEnterなどのキーボードの代替手段と、状態の通知があるかを確認します。各操作を説明するARIA属性と、ライブのメッセージを追加することを提案します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Make drag and drop accessible

Drag and drop is mouse-dependent by default—keyboard and screen reader users are completely locked out without proper alternatives and ARIA announcements.

Quick Reference

  • Always provide keyboard alternatives to drag and drop
  • Use aria-grabbed and aria-dropeffect (or newer attributes)
  • Announce drag operations to screen readers via live regions
  • Support both mouse/touch and keyboard interaction patterns

Check

Verify drag and drop interfaces have keyboard alternatives, proper ARIA attributes, and live region announcements.

Fix

Implement keyboard alternatives (arrow keys, Enter/Space), aria-grabbed, aria-dropeffect, and status announcements.

Explain

Explain how accessible drag and drop implementations provide equivalent functionality for keyboard and screen reader users.

Code Review

Review templates, server-rendered HTML, and shared components that output markup related to Make drag and drop accessible. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/html/draggable-accessibility

よくある質問

キーボードの代替手段は、なぜ重要ですか?

それがないと、マウスを使えない人がその機能から締め出されてしまうと、このスキルは説明しています。

ライブリージョンとは何ですか?

テキストが変わったときにスクリーンリーダーが読み上げるページの領域で、ドラッグの進行を伝えられます。

どのARIA属性が挙げられていますか?

aria-grabbedとaria-dropeffect、またはそれらに代わる新しい属性が挙げられています。

詳細

作者による元の説明

Use when reviewing templates, rendered HTML, or shared components related to Make drag and drop accessible. Validate the final browser-facing markup, not just the source framework abstraction.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2822
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル