Skip to content

docs(storybook): a TabBar story where each panel scrolls on its own - #10922

Merged
cixzhang merged 1 commit into
meta:mainfrom
vjeux:storybook/tabbar-scroll-to-top
Nov 10, 2026
Merged

cixzhang merged 1 commit into
meta:mainfrom
vjeux:storybook/tabbar-scroll-to-top

Conversation

@vjeux

@vjeux vjeux commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

A Storybook story for the lab TabBar, split from #9966 so that pull request changes Lab files only.

Reader impact

TabBar's stories have no case where each section's panel is its own scroll area. #9966 makes choosing the selected tab again scroll that area to its top, and its tests and readers need a story that shows it.

Source of truth

TabBarItem's panelId, which already names a tab's panel for aria-controls, and Core's ScrollableArea.

Correction

The new Panel scroll areas story (id lab-tabbar--scroll-to-top): each section's panel holds a sideways chip row over a long list. A pinned scroller and a reselect counter sit above. The chip row is a sideways ScrollableArea, so a keyboard can scroll it. It uses TabBar as it is today, so choosing the selected tab again only counts.

Evidence

  • Storybook builds, and its index lists lab-tabbar--scroll-to-top.
  • No component code changes.

Scope

  • This PR changes documentation only, or names every necessary generated artifact.
  • Runtime, API, visual, and policy changes were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

  • pnpm -F @astryxdesign/storybook run typecheck: 0 errors.
  • pnpm storybook:build: passes; the index lists lab-tabbar--scroll-to-top.
  • ESLint and Prettier on the story file: clean.
  • pnpm check:repo and review:pre: clean.

@vercel

vercel Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 10, 2026 1:12am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 10, 2026
@astracat-bot

astracat-bot Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 10, 2026, 1:15 AM UTC

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 2941750

Storybook · Sandbox · built from this PR's head

API changes: none in this pull request

Committed API report behind this build: cli 29 rows, core 36 rows; run pnpm api:report.

Not run on this PR: add ci:run-visual, ci:run-a11y or ci:run-rtl to run them.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the new story's name and description promise a behavior that TabBar does not have at this revision.

  • The ScrollToTop story shows as "Scroll To Top" and its description says choosing Home again scrolls back to the top (apps/storybook/stories/TabBar.stories.tsx:273-277), but on this branch a reselect only increments the counter and Home's list keeps its scroll position, so describe what the story does today and give it a display name such as name: 'Panel scroll areas' (the story id lab-tabbar--scroll-to-top is unchanged).

Non-blocking: the sideways chip row is a plain overflowX: 'auto' div with nothing focusable in it, so keyboard users cannot scroll it in browsers without keyboard-focusable scrollers. ScrollableArea axis="inline" would give it a tab stop.

[Automated review]

@vjeux
vjeux force-pushed the storybook/tabbar-scroll-to-top branch from 9679f03 to b88579b Compare November 10, 2026 00:36
@vjeux vjeux changed the title docs(storybook): TabBar's Scroll To Top story, a scroll area per panel docs(storybook): a TabBar story where each panel scrolls on its own Nov 10, 2026
@cixzhang cixzhang added the ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) label Nov 10, 2026
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec b88579b

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the new story's panel scroll areas cover only a narrow strip of each panel.

  • Miss: the panel's ScrollableArea (apps/storybook/stories/TabBar.stories.tsx:244-248) sits in a row flex wrapper with no width, so it shrinks to its rows' 120 px and a wheel or swipe over the rest of the panel scrolls nothing; add width="100%" (or drop display: 'flex' from the wrapper).

The earlier findings on the story's name and the keyboard-unreachable chip row are fixed.

[Automated review]

Each section's panel holds a sideways chip row over a long list, under
a pinned scroller, with a reselect counter, so a later change can show
where choosing the selected tab again scrolls. It uses TabBar as it is
today: choosing the selected tab again only counts.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet, because the pull request is still a draft.

  • The earlier findings are fixed: the story is named "Panel scroll areas" and says a reselect only counts, the chip row takes a tab stop and scrolls sideways, and each panel's list now spans the whole panel.
  • Next: mark the pull request ready for review. It already carries ci:run, so CI, including the accessibility audit of the changed story file, runs then.

[Automated review]

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 2941750

@vjeux
vjeux marked this pull request as ready for review November 10, 2026 04:54
@cixzhang
cixzhang merged commit 713d9ce into meta:main Nov 10, 2026
121 checks passed
@vjeux
vjeux deleted the storybook/tabbar-scroll-to-top branch November 10, 2026 05:20

This branch was successfully deployed

1 active deployment
Preview — 29417503 Deployed Nov 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) 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