Repository navigation
fix(aria): address issue #1037 item 3 - #1041
Merged
domgan-oai merged 2 commits intoSep 10, 2026
Merged
Conversation
domgan-oai
marked this pull request as ready for review
September 10, 2026 20:08
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
@octanejs/aria: virtualizer remeasurement, grid list child keyboard events, shortcut handler events, and public TokenField/TreeSection types.Why
The virtualizer dropped its size observation prop, native child keyboard events reached the grid list row press handler, shortcut callbacks received raw events instead of
BaseEvent, and the public prop types rejected supported use. Plain TypeScript callers could also collide when they passed distinct slots to the converted hooks.Changes
shouldObserveItemSizetouseVirtualizerItemand exercise a simulated content resize throughResizeObserver.cancelBubble; run user keyboard callbacks within the shortcut path'sBaseEventwrapper.FocusablePropson TokenField and theTreeSectionProps<T>signature, with public JSX type checks included in Aria typechecking..tsxhooks. A plain.tstwo-menu-trigger regression verifies distinct IDs and ARIA links.getSelection: the pinned upstream root entry point explicitly exports it.Validation
pnpm exec tsgo --noEmit -p packages/aria/tsconfig.jsonpnpm exec vitest run --project aria --reporter=dot(386 tests)pnpm exec vitest run --project aria-differential --project aria-ssr --reporter=dot(49 + 9 tests)pnpm --dir packages/aria exports:check;node packages/aria/scripts/check-upstream-crosswalk.mjspnpm sync; scopedpnpm format:files:checkon all changed files;git diff --checkpnpm testandpnpm typecheck(current-head CI will cover the broader matrix)Risk / follow-ups
The explicit-slot branch runs only for calls that supply a slot; the emitted normal compiled caller passes the original arguments and stays on the existing body path, adding one conditional with no closure or second hook invocation. Item-size observation is tested with a simulated observer callback; the new regression does not measure real browser layout.
Provenance
agent-authored)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Medium Risk
Changes keyboard propagation, row selection guards, and slot-scoped hook/ID behavior across many interaction hooks; regressions could affect menus, overlays, and accessibility wiring.
Overview
This patch release for
@octanejs/ariafixes several Octane-native integration bugs from #1037 and tightens public types.Virtualizer again passes
shouldObserveItemSizethroughVirtualizerItemintouseVirtualizerItem, with a new test that simulatesResizeObserverremeasurement.Keyboard and grid list behavior switches grid list row handling to native
cancelBubbleso Space/Enter on embedded controls do not trigger row selection.useKeyboardruns useronKeyDown/onKeyUpinside the sameBaseEventwrapper as shortcut handling so propagation controls work consistently.Types and dialog IDs:
AriaTokenFieldPropsextendsFocusableProps;TreeSectionis typed withTreeSectionProps<T>instead of grid header props.useDialogscopes the content description ID with an explicit slot. Thirteen Aria hooks delegate towithSlotwhen callers pass an explicit slot, keeping hook state and generated IDs distinct for plain TypeScript (covered by a two-menu-trigger fixture).New typetests and audit entries register the virtualizer and public component type checks.
Reviewed by Cursor Bugbot for commit 76d7d0c. Bugbot is set up for automated code reviews on this repo. Configure here.