feat(treegrid): マウスクリックによるセル選択と展開/折りたたみ#178
Merged
Merged
Conversation
任意のセルクリックでそのセルにフォーカスを移動し、rowheader クリックで親行の 展開/折りたたみをトグルする。行選択 (aria-selected) は Space キー専用のまま 維持し、APG の cell-only focus model とキーボードのセマンティクスを保つ。 4 フレームワーク (React / Vue / Svelte / Astro Web Component) と ドキュメント (treegrid.md, accessibility-docs MDX) を更新。 package version は 0.3.8 にバンプ。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Deploying apg-patterns-examples with
|
| Latest commit: |
6a6eb75
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://64ee8775.apg-patterns-examples.pages.dev |
| Branch Preview URL: | https://feat-treegrid-mouse-click.apg-patterns-examples.pages.dev |
クリックで rowheader の展開トグルが起きるようになったため、テストの focus 取得が副作用を起こさないよう el.focus() で直接 focus を当てる。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
treegrid.md,treegrid.ja.md,accessibility-docs/treegrid/{en,ja}.mdx) に「Mouse Support (non-APG extension)」セクションを追記Test plan
npx vitest run src/patterns/treegrid/TreeGrid.test.tsx全 64 テスト pass(Mouse interactions describe で 7 ケース追加)npm run lintで TreeGrid 由来の新規エラー/警告なし/patterns/treegrid/{react,vue,svelte,astro}/を巡回し、Documents 行クリックでaria-expandedがトグルすることを確認🤖 Generated with Claude Code