Skip to content

refactor(tablist): use shared useListFocus for roving keyboard nav#3451

Merged
cixzhang merged 1 commit into
mainfrom
navi/refactor/tablist-uselistfocus
Jul 3, 2026
Merged

refactor(tablist): use shared useListFocus for roving keyboard nav#3451
cixzhang merged 1 commit into
mainfrom
navi/refactor/tablist-uselistfocus

Conversation

@cixzhang

@cixzhang cixzhang commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #3434 (which merged before this refactor landed). Refactors TabList to use the shared useListFocus hook (adds an opt-in bothAxes option) instead of ad-hoc roving-tabindex logic, per review feedback. Existing TabList tests unchanged. #3343

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 2, 2026
@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview, Comment Jul 3, 2026 4:26am

Request Review

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.6KB 0B

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@cixzhang cixzhang force-pushed the navi/refactor/tablist-uselistfocus branch from 352408b to f7e55f8 Compare July 2, 2026 21:04
github-actions Bot added a commit that referenced this pull request Jul 2, 2026
@cixzhang cixzhang enabled auto-merge (squash) July 2, 2026 23:18
@cixzhang cixzhang force-pushed the navi/refactor/tablist-uselistfocus branch from f7e55f8 to cb66a6c Compare July 3, 2026 01:17
github-actions Bot added a commit that referenced this pull request Jul 3, 2026
Migrate TabList to the shared useListFocus hook with orientation:'both'
instead of its own inline keyboard handler. useListFocus already supports
both-axes navigation (Arrow keys + Home/End, disabled-skip, wrap), so the
TabList strip becomes a single tab stop driven by the shared hook.
@cixzhang cixzhang force-pushed the navi/refactor/tablist-uselistfocus branch from f6b071f to 513edcb Compare July 3, 2026 04:23
@cixzhang cixzhang merged commit 1742116 into main Jul 3, 2026
15 checks passed
github-actions Bot added a commit that referenced this pull request Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants