Repository navigation
docs(storybook): a TabBar story where each panel scrolls on its own - #10922
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
Changes requested: the new story's name and description promise a behavior that TabBar does not have at this revision.
- The
ScrollToTopstory 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 asname: 'Panel scroll areas'(the story idlab-tabbar--scroll-to-topis 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]
9679f03 to
b88579b
Compare
|
/approve-spec b88579b |
There was a problem hiding this comment.
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 nowidth, so it shrinks to its rows' 120 px and a wheel or swipe over the rest of the panel scrolls nothing; addwidth="100%"(or dropdisplay: '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.
b88579b to
2941750
Compare
There was a problem hiding this comment.
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]
|
/approve-spec 2941750 |
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'spanelId, which already names a tab's panel foraria-controls, and Core'sScrollableArea.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 sidewaysScrollableArea, so a keyboard can scroll it. It uses TabBar as it is today, so choosing the selected tab again only counts.Evidence
lab-tabbar--scroll-to-top.Scope
Testing
pnpm -F @astryxdesign/storybook run typecheck: 0 errors.pnpm storybook:build: passes; the index listslab-tabbar--scroll-to-top.pnpm check:repoandreview:pre: clean.