Repository navigation
Conversation
Keep disabled radios mounted and focusable, guard activation callbacks, and attach disabled reasons to the radios. Coordinate native group and form state through a private context without extending the public context API. Keep nine focused regressions in RadioList.test.tsx, extending the existing pointer and keyboard callback checks rather than adding separate suites. Validation: 109 RadioList tests, Core source/docs typechecks, the full build, and strict lint pass. The full test run stops at an upgrade-notice assertion in packages/cli/test/global-local.test.mjs. Known remaining regressions are WebKit navigation across disabled options and required validity before hydration with a selected disabled option.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
AI review status for this pull request.
|
github-actions
Bot
requested review from
cvkxx,
ernestt,
kentonquatman and
rubyycheung
November 1, 2026 10:42
4 tasks done
cixzhang
added a commit
that referenced
this pull request
Nov 1, 2026
Co-authored-by: korkt-kim <[email protected]>
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.
User impact
A selected RadioList option can become disabled while a person is using the keyboard. Without a group
disabledMessage, the radio receives nativedisabled, leaves the focus order, and loses focus. An individually disabled option has the same problem. With a reason, the group is described, but the focused radio does not receive that reason.This draft keeps the existing radio focusable and non-operable, without requiring a reason. It is not ready to merge: the browser checks still reproduce the two regressions below.
Problem and solution fit
The disabled rendering path depends on whether a group reason exists. Native
disabledprevents discovery and focus retention; simply removing it would allow native activation and submit disabled values.The change uses
aria-disabled, guards owned click/capture and activation-key callbacks, and composes the group reason with each radio's existing description. Disabled radios have no form owner and use a private per-list name, so separate forms sharinghtmlNamedo not collapse into one native group. A private context coordinates member updates, required validation, and Tab entry; a limited arrow fallback connects the split native groups. Caller-owned slot controls keep their own behavior.Expected behavior and authority
These links pin the authority at this change's merge base. No specification is changed here.
Smallest restoration
RadioList.test.tsx; extend its existing pointer, Space, and ArrowDown checks with capture assertions. No separate regression suite is added.DisabledWithMessagestory to cover the actual radio's description.disabledtoaria-disabled.Evidence
The same temporary source-rendered fixture ran against base
a587813542and head68458a6eb7in Playwright Chromium and WebKit, with 57 observations per revision. The fixture and evidence files are not part of the implementation diff.FormData. Space on the wholly disabled group changes neither selection nor callbacks. Chromium exposes both the option description and the disabled reason on B.delivery=a, and invokes each applicable callback once in both browsers. Unit tests also verify callback and submission recovery after re-enabling.These are source-rendered browser observations and DOM tests, not a built-Storybook audit or real assistive-technology speech verification. Visual evidence is still pending.
Remaining draft blockers
RadioList.tsxandRadioListItem.tsx. This draft does not supersede either PR or claim those conflicts are resolved.Scope
Testing
Validation of the tree committed as
68458a6eb7:pnpm exec vitest run --project ui packages/core/src/RadioList— 4 files, 109 tests passed.pnpm -F @astryxdesign/core typecheck— source and consumer-documentation types passed.pnpm build— passed.pnpm lint:strict— passed with 0 errors and 135 warnings; repository checks passed.git diff --check, and normal pre-commit hooks — passed.pnpm test --maxWorkers=4 --bail=1— stopped atpackages/cli/test/global-local.test.mjs:407: an expected upgrade notice isundefined. That file is outside this diff, and the same case fails alone withpnpm exec vitest run --project node packages/cli/test/global-local.test.mjs -t 'in a fresh clone, doctor names' --maxWorkers=1. The full suite is not reported as passing.