Repository navigation
feat(sortable-list): ドラッグとキーボードで並べ替える SortableList を追加する - #33
Merged
Merged
Conversation
- 左のつまみをドラッグすると行が指に付いて動き、離した位置へ一度で動く。矢印キーでも動かせ、フォーカスはつまみに残る - 右の開閉ボタンから「上へ」「下へ」「外す」を出す(WCAG 2.5.7) - 並びが変わると FLIP で動かし、動かした位置を読み上げる。位置は CSSOM で動かす(CSP で止まらない) - DESIGN.md・04 の部品の選び方・README に追加 bouzu(tkc310/bouzu#77・#89)の読誦セットの並べ替えを部品にした。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S5dPLGGVzZyRz8dob3cTmz
tkc310
pushed a commit
that referenced
this pull request
Nov 7, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S5dPLGGVzZyRz8dob3cTmz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by tkc310 · project thread
変更内容
利用者が項目の順番を決める SortableList を追加します。bouzu(tkc310/bouzu#77・#89)で読誦セットの「読む順番」を作ったとき、次の問題を順に直してたどり着いた形を部品にしたものです。
aria-expanded): 行の下に「上へ」「下へ」、onRemoveを渡すと「外す」も出す。ドラッグできない人の代わりの操作(WCAG 2.5.7)role="status"で読み上げる(「下書きを作るを5件中2番目に動かしました」)。外したあとはフォーカスを隣の行のつまみへ移す(bouzu には無かった改善)style-srcの CSP で止まらない)。動きを減らす設定ではテーマの規則で止まるrenderItemで行の中身、numberedで番号の有無、messagesで文言(既定は日本語)を変えられるmoveItemTo・dropIndex・shiftOf)はuseSortable.tsの純粋な関数に分けてテストしたStorybook プレビュー
プレビュー: https://tkc310.github.io/8341-ui/pr-preview/pr-33/ (a6cc7e0 時点)
スマホでの指のドラッグは実機で確かめてください(エージェントはマウスのドラッグだけを確かめました)。
完了の定義
make checkとmake testが通る(ストーリーの play 関数と axe を含む).changeset/sortable-list.md、patch)改善ループ
docs/improvement/log.mdに 1 行追記したhttps://claude.ai/code/session_01S5dPLGGVzZyRz8dob3cTmz
Generated by Claude Code