Repository navigation
fix(Table): contain overscroll only while scrollable - #6410
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
AI review status for this pull request.
|
cixzhang
force-pushed
the
cindy/table-conditional-overscroll
branch
from
September 21, 2026 05:35
3ba3000 to
af3b809
Compare
cixzhang
force-pushed
the
cindy/table-conditional-overscroll
branch
from
September 21, 2026 05:41
af3b809 to
d5d9f34
Compare
cixzhang
marked this pull request as ready for review
September 21, 2026 05:43
cixzhang
requested review from
humbertovirtudes,
imdreamrunner and
josephfarina
as code owners
September 21, 2026 05:43
Contributor
PR Analysis Report
No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: 36 accessibility violation(s) found — 2 critical, 34 serious. Button pattern - 1 issue(s)
ChatComposer - 1 issue(s)
ChatComposerInput - 1 issue(s)
ChatReasoning - 1 issue(s)
ChatToolCalls - 1 issue(s)
Checkbox pattern - 1 issue(s)
CheckboxList - 1 issue(s)
ClickableCard - 1 issue(s)
CodeEditor - 1 issue(s)
CodeEditorPerf - 1 issue(s)
CodeEditorTheme - 1 issue(s)
CodeTheme - 1 issue(s)
DateRangeInput - 1 issue(s)
FileInput - 1 issue(s)
GridMasonry - 1 issue(s)
Heading - 1 issue(s)
Icon - 1 issue(s)
LogStream - 1 issue(s)
MediaTheme Auto - 1 issue(s)
PowerSearch - 1 issue(s)
ProgressBar - 1 issue(s)
Radio group pattern - 1 issue(s)
RadioList - 1 issue(s)
RichTextEditor - 2 issue(s)
SelectableCard - 1 issue(s)
Stepper - 1 issue(s)
TableGroupedRows - 1 issue(s)
TableTree - 1 issue(s)
Text - 1 issue(s)
Theme - 1 issue(s)
PopArt - 1 issue(s)
Thumbnail - 1 issue(s)
Timestamp - 1 issue(s)
Token - 1 issue(s)
Tokenizer - 1 issue(s)
Visual RegressionStatus: No visual change across 2 compared shot(s). Generated by PR Enrichment workflow | View full report |
Contributor
Author
|
/approve-spec d5d9f34 |
3 tasks done
AKnassa
added a commit
to AKnassa/astryx
that referenced
this pull request
Sep 26, 2026
Clean merge (no conflicts). Auto-merged .github/a11y-baseline.json (keeps upstream's baseline with this PR's TableTree aria-conditional-attr entries removed) and packages/core/src/Table/Table.test.tsx. Brings meta#6410, which makes the Table scroll wrapper a Tab stop only while the table overflows horizontally.
AKnassa
added a commit
to AKnassa/astryx
that referenced
this pull request
Sep 26, 2026
…APG treegrid Review round for astracat-bot and the rubyycheung / humbertovirtudes reviews. F1 (caller props overwrote the plugin): BaseTable now resolves the caller's <table> props against the plugin pipeline's. A handler both set for the same event is composed with composeEventHandlers, caller first, so the caller's preventDefault() opts out; a plugin's role wins, with a dev warning. Proof: Table.test.tsx (caller-first composition, preventDefault opt-out, role + warning) and useTableTreeData.test.tsx through <Table> (onKeyDown keeps ArrowDown navigation, preventDefault stops it, role="grid" stays treegrid, onFocus still moves the stop). Red: calls were ['caller'] only; no treegrid role with role="grid"; focus stayed on src with onKeyDown set. F2 (focus did not move the roving stop): useTreeFocus.handleFocus promotes the enabled item that owns the focus target (nearest itemSelector match) and falls back to the repair pass otherwise. This also fixes TreeList. The tree plugin forwards only focus that lands on a row, so focusing an in-cell control leaves the row stop in place and the Tab order is stable. Proof: new tests in useTreeFocus.test.tsx, TreeList.test.tsx and useTableTreeData.test.tsx (programmatic focus, click, in-cell control). Red: focused item kept tabindex="-1". F3 (chevron used the browser outline): both the row expander and the header expand-all toggle compose focusOutlineStyles.focusVisible. Proof: shared-ring class tests on both buttons. Red: 0 of the shared ring classes present. F4 (Tab order undocumented): docs, changeset, story JSDoc and plugin header state the order against the merged meta#6410 behavior: scroll region (only while the table overflows inline) -> header controls -> in-cell controls and the one active row in DOM order -> out. Removes the wrong "row stop ahead of the in-cell controls" wording. A Tab-walk test pins the sequence with a non-first active row (passes before and after; it fails if the row stop follows focus onto in-cell controls, which is why the plugin gates focus). F5 (maintainers: tree arrows, not APG treegrid): ArrowRight on an expanded row and ArrowLeft on a collapsed or leaf row hold focus on the row (preventDefault, no move), in either reading direction. The shared hook keeps its tree-view behavior for TreeList. Proof: rewritten keyboard tests (LTR and RTL). Red: ArrowRight on expanded src moved focus to components; ArrowLeft on utils.ts moved focus to src.
This branch was successfully deployed
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.
Why
A Table that fits its container can still become a scroll-chain boundary, leaving the parent page unable to scroll while the pointer is over the table.
What
Table now reuses the shared
useScrollableAreabehavior on its existing inline viewport. The viewport enters the keyboard order and contains overscroll only while its columns actually overflow. A private observed content box keeps the existing public API and Table-owned scroll region.Risk
The semantic
<table>, public props, theme target, native scrolling, plugin refs, and plugin-provided scroll-wrapper HTML attributes are preserved. The scroll viewport gains one private content wrapper for live geometry observation.Testing