Repository navigation
spec(RadioList): React Native platform record - #12867
imdreamrunner wants to merge 7 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Approval waits on an engineering owner's decision, and five defects need fixing either way.
Owner decision needed: the new draft record's requirements (DEC-1, DEC-2, FR1–FR6, AR1–AR4) are stated by no current record, so an engineering owner records approval by commenting /approve-spec <full head SHA> on this pull request, which you may do yourself as an engineering owner; approval settles the direction, not the defects below.
Blocking:
sizeis honored only in part on Android: thesizerow (line 88) and AV1 (line 119) let Material's radio keep its own mark size, whichspec:AST-082FR3 forbids for a prop a platform offers.- AR2 (line 157) says the arrow keys skip disabled options "as core's radio group does", but core's contract stops on
aria-disabledradios (component:RadioListFR4,component:RadioListItemFR6), andspec:AST-082FR3 keeps focus behavior the same on every platform. - FR2 (line 99) describes core's drawn radio as a border-colour circle with an accent dot, but
component:IndicatorFR5 draws an emphasized border when unchosen and an accent fill with an on-accent dot when chosen. - FR4's wrapping horizontal row and FR5's development-only stop (lines 87, 101–102) are credited to core, but
component:RadioListFR7 has no wrap andcomponent:RadioListItemFR1 throws in every build, so mark them as React Native's own or match core. - The Owns list claims the option row's touch target and layout (line 66) while Does not own gives the row layout to
component:Item(line 78), and the open React Native Item record (#12823), which states the touch area and press feedback of interactive Item rows and names RadioList among their users, is not named here.
The citations of spec:AST-112 FR16 and FR19 and of spec:AST-126 resolve only once #12563 and #12556 land, so this should merge after them as the description says.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: stacked on the knowledge-tooling pull request (#12592) and merges after it. Verified: the base branch is that pull request's head.
- Claim: cites the AST-112 amendment (#12563) for FR16 and FR19 and the controls record (#12556) for OQ1. Verified: those claims exist only in the two open pull requests; at this head AST-112 is draft and ends at FR15.
- Claim: the listed existing authority (RadioList, RadioListItem, input fields, AST-082, AST-085, AST-093) is current. Verified on
main. - Claim: the controls record has no radio. Verified in #12556.
- Claim: no open pull request adds a RadioList React Native record. Verified by repository search.
- Claim: overlapping open work is named. False: the open React Native Item record (#12823) overlaps the row rules and is not named.
- Claim: the Decision bullets summarize the record. Verified, except AR2's parity with core's radio group (false against RadioList FR4).
- Claim: every difference from the implementing package is a gap line. Not verifiable: that package is not in this repository.
- Claim: no rejected alternatives recorded; writing rubric R1–R7 clean. Verified: no Rejected lines, no pull request references in the record, and "not yet released" only in the template's field and readiness cell.
- Claim: specification records only, with no internal context. Verified: one record file.
- Claim: the knowledge check passes. Verified: it reports templates and records aligned, with no warning for this record.
- Claim: Prettier and whitespace checks are clean. Not checked.
- File
docs/specs/components/RadioList/RadioList.react-native.spec.md: five findings (size on Android, AR2, FR2, FR4/FR5 attribution, row ownership).
… options; core's indicator; wrap is DEC-3; touch area from the Item record
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the new draft record, and one defect needs fixing either way; the five defects from the previous review are fixed.
Owner decision needed: the new draft record component:react-native/RadioList writes requirements no current record states, so it is not authoritative until an engineering owner approves or rejects them:
- DEC-1 and FR2: on Android, Material's radio button at
size's side, tinted by the theme; on iOS, core's radio indicator. - DEC-2:
htmlName,width, thecontainer*andcontrol*props and RadioListItem'saria-labelare not offered. - DEC-3 and FR4: a horizontal row of options wraps on React Native, which
component:RadioListFR7 does not state. - FR3, FR6 and AR2: the row's touch area and press feedback come from the React Native Item record, a disabled group's reason goes in each option's hint, and a hardware keyboard moves the choice and stops on disabled options.
An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Blocking:
- Miss: FR6 and AR3 (with the disabled-with-reason state and its verification row) show a disabled group's reason only on a long press, but
component:TooltipFR5 opens a disabled control's reason on a tap for touch input andspec:AST-082FR3 says a touch platform behaves that way, so let a tap on a disabled option show the reason (a long press may also show it).
Also worth fixing:
- The theme values (line 175) still name "the control border colour" where FR2 now reads the emphasized border colour, and FR3 lists "its start content and the mark" where core puts the mark first (
component:RadioListItemFR2). - The record cites claims that exist only in #12563, #12823 and #12556, so it must not land before them or before #12592.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: stacked on the platform-records pull request and merges after it — verified (this pull request's base is that open pull request's head).
- Claim: the record cites the AST-112 amendment for FR16 and FR19, the React Native Item record for its touch area and press feedback, and AST-126 for OQ1 — verified (each claim exists in those open pull requests).
- Claim: the core RadioList and RadioListItem records, the input-field family, AST-082, AST-085 and AST-093 are current and state no React Native rendering — verified.
- Claim: AST-126's control group has no radio, and the React Native Item record names RadioList among the components that render rows with Item — verified.
- Claim: no open pull request adds a RadioList React Native record — verified (repository search).
- Claim: the decision bullets (props, mark per platform, row, wrapping, choice, disabled, screen readers and keyboard) match the record — verified against FR1–FR6, AR1–AR4 and DEC-1 to DEC-3.
- Claim: every place the implementing package differs is a gap line, after reading each requirement against that package — not verifiable here (the package is not in this repository).
- Claim: no rejected alternatives are recorded — verified.
- Claim: writing rubric R1–R7 results — verified (no pull request references, no rejected lines, OQ1 keeps its two options, "not yet released" only in the lifecycle field and readiness cell).
- Claim: overlapping open work is named and public text has no internal context — verified.
- Claim: the knowledge check, Prettier and
git diff --checkare clean — verified (run at this head). - File
docs/specs/components/RadioList/RadioList.react-native.spec.md— one blocking finding (long-press-only disabled reason) and three non-blocking notes.
…fore start content
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the new draft record component:react-native/RadioList, and one defect needs fixing either way.
Owner decision needed: the record writes requirements no current record states: DEC-1, FR2, ORD1 and AV1 (Material's radio button on Android at size's side with the theme's tint, core's radio on iOS), DEC-2 and FR1 (the web-only props), DEC-3 and FR4 (a horizontal row wraps), FR3 (touch area and press feedback from the open React Native Item record) and FR6 and AR3 (a long press also shows a disabled group's reason). An engineering owner records approval or rejection by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Blocking:
- Miss: FR1 (line 97) puts the shared base props "on each one's root", so RadioList's
idandisHiddenland on the field, whilespec:AST-082FR7 keeps the part the same on every platform andfamily:input-fieldsFR10 gives RadioList's to its radio group; name the radio group for RadioList and the row for RadioListItem.
Non-blocking: the contract-at-a-glance table trails the body (its Governing rules leave out component:Tooltip FR5, component:RadioListItem FR2 and component:RadioList FR4, and its Builder impact leaves out RadioListItem's aria-label), and the record should land after #12592, #12563, #12823 and #12556, whose claims it cites.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the pull request sits on #12592 and merges after it. Verified: its base is #12592's branch, and #12592 is an open draft.
- Claim: the record cites the AST-112 amendment in #12563 for FR16 and FR19. Verified: both appear only in #12563; on
main, AST-112 is a draft ending at FR15. - Claim: the open React Native Item record (#12823) gives interactive rows their touch area (AR7) and press feedback (AV2) and names RadioList among the components that render rows with Item. Verified in #12823.
- Claim: the open platform-controls record (#12556) has no radio. Verified: its record never mentions a radio.
- Claim: RadioList, RadioListItem, the input-fields family, AST-082, AST-085 and AST-093 are current authority. Verified on
main. - Claim: the open TopNav, TabBar, Switch and Avatar React Native records exist, and no other open pull request adds a RadioList React Native record. Verified: all four are open drafts; a repository search finds only this pull request and the Item record.
- Claim: the decision bullets describe the record's props, marks, row, layout, choice, disabled and keyboard rules and gap lines. Verified against FR1–FR6, AR1–AR4, DEC-1 to DEC-3 and the gap lines.
- Claim: the record keeps web's props and meaning. Verified for the component props; FR1 attaches RadioList's shared base props to a different part than the web does (blocking finding).
- Claim: no rejected alternatives are recorded. Verified: the record has no rejected-alternative lines.
- Claim: the pull request is a specification only. Verified: it adds one Markdown record.
- Claim: every place the implementing package differs is a gap line. Not verifiable here: that package is not in this repository.
- Claim: the writing rubric finds no narration, references, rejected-alternative lines or project status. Verified: no issue or pull request references, and "not yet released" appears only in the lifecycle field and the readiness cell.
- Claim: public text carries no internal context. Verified.
- Claim: the knowledge check, Prettier and the whitespace check pass. Verified by rerunning all three at this head.
- File
docs/specs/components/RadioList/RadioList.react-native.spec.md: one blocking finding (FR1's base-prop part) and two non-blocking notes (the glance table, the pending citations).
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the new draft record component:react-native/RadioList; the earlier base-prop defect is fixed, and nothing else blocks.
Owner decision needed: the record writes requirements no current record states: DEC-1, FR2, ORD1 and AV1 (Material's radio button on Android at size's side with the theme's tint, core's radio on iOS), DEC-2 and FR1 (the web-only props), DEC-3 and FR4 (a horizontal row wraps), FR3 (touch area and press feedback from the open React Native Item record) and FR6 and AR3 (a long press also shows a disabled group's reason). An engineering owner records approval or rejection by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Non-blocking:
- AR3 (line 155) lists the hint, a tap and a long press for a disabled group's reason, but not the keyboard focus that
component:RadioListAR3 and FR5 name and that AR2's hardware-keyboard path reaches. - FR1 (line 97) does not say what
labelanddescriptiontake on React Native; iflabelcan be content, a label with no text has no name once DEC-2 dropsaria-label. - The contract-at-a-glance table still trails the body, and the record should land after #12592, #12563, #12823 and #12556, whose claims it cites.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the pull request sits on #12592 and merges after it. Verified: its base is #12592's branch, and #12592 is an open draft.
- Claim: the record cites the AST-112 amendment in #12563 for FR16 and FR19. Verified: both appear only in #12563; on
main, AST-112 is a draft ending at FR15. - Claim: the open React Native Item record (#12823) gives interactive rows their touch area (AR7) and press feedback (AV2) and names RadioList among the components that render rows with Item. Verified in #12823.
- Claim: the open platform-controls record (#12556) has no radio. Verified: its record never mentions a radio.
- Claim: RadioList, RadioListItem, the input-fields family, AST-082, AST-085 and AST-093 are current authority. Verified on
main. - Claim: the open TopNav, TabBar, Switch and Avatar React Native records exist, and no other open pull request adds a RadioList React Native record. Verified: all four are open drafts; a repository search finds only this pull request and the Item record.
- Claim: the decision bullets describe the record's props, marks, row, layout, choice, disabled and keyboard rules and gap lines. Verified against FR1–FR6, AR1–AR4, DEC-1 to DEC-3 and the gap lines.
- Claim: the record keeps web's props and meaning, apart from the listed web-only props. Verified for the component props and the base-prop part; the React Native form of
labelanddescriptionis not stated (non-blocking). - Claim: no rejected alternatives are recorded. Verified: the record has no rejected-alternative lines.
- Claim: the pull request is a specification only. Verified: it adds one Markdown record.
- Claim: every place the implementing package differs is a gap line. Not verifiable here: that package is not in this repository.
- Claim: the writing rubric finds no narration, references, rejected-alternative lines or project status. Verified: no issue or pull request references in the record, each gap line names its requirement and the mismatch, and "not yet released" appears only in the lifecycle field and the readiness cell.
- Claim: public text carries no internal context. Verified.
- Claim: the knowledge check, Prettier and the whitespace check pass. Verified by rerunning all three at this head.
- File
docs/specs/components/RadioList/RadioList.react-native.spec.md: no blocking finding; four non-blocking notes (AR3's keyboard path, FR1's content forms, the glance table, the pending citations).
…scription are plain text
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the new draft record component:react-native/RadioList, and one defect needs fixing either way.
Owner decision needed: the record writes requirements no current record states: DEC-1, FR2, ORD1 and AV1 (Material's radio button on Android at size's side with the theme's tint, core's radio on iOS), DEC-2 and FR1 (the web-only props), FR1 (plain-text label and description on React Native), DEC-3 and FR4 (a horizontal row wraps) and FR3 (touch area and press feedback from the open React Native Item record). An engineering owner records approval or rejection by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Blocking:
- The representative state at line 126 requires "a tap on a link in an option's description", but FR1 (line 97) now makes
descriptionplain text, so move that state to the end content (and name the same place in the verification row at line 204) or letdescriptiontake React Native content.
Non-blocking:
- The contract-at-a-glance table still trails the body (Governing rules at line 36, Builder impact at line 33), and the record should land after #12592, #12563, #12823 and #12556, whose claims it cites.
The earlier keyboard-focus and label-form notes are fixed.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the pull request sits on #12592 and merges after it. Verified: its base is #12592's branch, and #12592 is an open draft.
- Claim: the record cites the AST-112 amendment in #12563 for FR16 and FR19. Verified: both appear only in #12563; on
main, AST-112 is a draft ending at FR15. - Claim: the open React Native Item record (#12823) gives interactive rows their touch area (AR7) and press feedback (AV2) and names RadioList among the components that render rows with Item. Verified in #12823.
- Claim: the open platform-controls record (#12556) has no radio. Verified: its record never mentions a radio.
- Claim: RadioList, RadioListItem, the input-fields family, AST-082, AST-085 and AST-093 are current authority with the claims named. Verified on
main. - Claim: the open TopNav, TabBar, Switch and Avatar React Native records exist, and no other open pull request adds a RadioList React Native record. Verified: all four are open drafts; a repository search finds only this pull request and the Item record.
- Claim: React Native keeps web's props and meaning, with the form name, width, styling props and the item's
aria-labelleft on the web. Verified in FR1 and DEC-2. - Claim:
labelanddescriptiontake plain text on both components, and core's rich label content stays on the web. Verified in FR1 (line 97); the state at line 126 still assumes a link in a description (blocking above). - Claim: a disabled option's reason shows on a tap and on keyboard focus, and a long press opens nothing. Verified in FR6 and AR3; the tap follows the Tooltip record's FR5, and keyboard focus follows the RadioList record's FR5 and AR3.
- Claim: Android draws Material's radio button at
size's side with the theme's tint, and iOS core's radio indicator. Verified in FR2 and DEC-1. - Claim: each option is one Item row that a tap chooses, with the React Native Item record's touch area and press feedback, in a column or a wrapping row. Verified in FR3, FR4 and DEC-3.
- Claim: a new choice calls
onChangeonce, the chosen option reports nothing, and a disabled option refuses while staying reachable with its state and the group's reason. Verified in FR5 and FR6. - Claim: screen readers meet one radio group, and with a hardware keyboard the arrow keys move the choice and stop on a disabled option. Verified in AR1–AR4.
- Claim: every place the implementing package differs is a gap line. Not verifiable here: that package is not in this repository.
- Claim: no rejected alternatives are recorded. Verified: the record has no rejected-alternative lines.
- Claim: the pull request is a specification only. Verified: it adds one Markdown record.
- Claim: the writing rubric finds no narration, references, rejected-alternative lines or project status. Verified: no issue or pull request references in the record, each gap line names its requirement and the mismatch, and "not yet released" appears only in the lifecycle field and the readiness cell.
- Claim: public text carries no internal context. Verified.
- Claim: the knowledge check, Prettier and the whitespace check pass. Verified: all three pass at this head.
- File
docs/specs/components/RadioList/RadioList.react-native.spec.md: one blocking finding (line 126 against FR1) and two non-blocking notes (the glance table, the pending citations).
| | Public contract | Web's `RadioList` (`label`, `value`, `onChange`, `children`, `isLabelHidden`, `description`, `orientation`, `isDisabled`, `disabledMessage`, `isRequired`, `isOptional`, `status`, `size`, `labelTooltip`) and `RadioListItem` (`label`, `value`, `description`, `align`, `isDisabled`, `startContent`, `endContent`), with the shared base props. `htmlName`, `width`, the `container*` and `control*` styling props, and `RadioListItem`'s `aria-label` stay on the web (DEC-2). | | ||
| | Behavior | RadioList is the field around a group of options, each a row that reads as one radio: its mark, its label, its description and its own content. On Android the mark is Material's radio button; on iOS, which has no radio control, it is core's radio drawn from the theme (DEC-1). A tap anywhere on a row chooses it, and choosing a new option calls `onChange` once with its value. | | ||
| | End-user impact | A person picks one option from a short list with a tap on any part of its row, sees Material's radio buttons on Android, and hears each option with VoiceOver or TalkBack as a radio with its label, its state and the group's name. | | ||
| | Builder impact | Web code that drives a RadioList from app state ports unchanged, apart from the web's form name, width and styling props. A form posts the value from app state, since React Native has no HTML form. | |
There was a problem hiding this comment.
Non-blocking: RadioListItem's aria-label and a node label or description do not port either (FR1, DEC-2). The Governing rules row (line 36) also still leaves out component:RadioListItem FR2 and FR12, component:RadioList FR4 and component:Indicator FR5, which the body cites.
…plain-text description
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the new draft record component:react-native/RadioList; the earlier representative-state defect is fixed, and nothing else blocks.
Owner decision needed: the record writes requirements no current record states: DEC-1, FR2, ORD1 and AV1 (Material's radio button on Android at size's side with the theme's tint, core's radio on iOS), DEC-2 and FR1 (the web-only props), FR1 (plain-text label and description on React Native), DEC-3 and FR4 (a horizontal row wraps) and FR3 (touch area and press feedback from the open React Native Item record). An engineering owner records approval or rejection by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Non-blocking:
- The contract-at-a-glance table still trails the body (Governing rules at line 36, Builder impact at line 33).
- Miss: FR3's basis (line 99) cites RadioListItem FR13, the web's coarse-pointer band, which line 191 leaves to the web contract; drop it so an implementer takes the touch area only from the React Native Item record.
- The record should land after #12592, #12563, #12823 and #12556, whose claims it cites.
The line 126 state now tests a button in the end content, consistent with FR1's plain-text description.
Claims and files checked
Review mode: full; reason: spec-record
- Claim: the pull request sits on #12592 and merges after it. Verified: its base is #12592's branch, and #12592 is an open draft.
- Claim: the record cites the AST-112 amendment in #12563 for FR16 and FR19. Verified: both appear only in #12563; on
main, AST-112 is a draft ending at FR15. - Claim: the open React Native Item record (#12823) gives interactive rows their touch area (AR7) and press feedback (AV2) and names RadioList among the components that render rows with Item. Verified in #12823.
- Claim: the open platform-controls record (#12556) has no radio. Verified: its record never mentions a radio.
- Claim: RadioList, RadioListItem, the input-fields family, AST-082, AST-085 and AST-093 are current authority with the claims named. Verified on
main. - Claim: the open TopNav, TabBar, Switch and Avatar React Native records exist, and no other open pull request adds a RadioList React Native record. Verified: all four are open drafts; a repository search finds only this pull request and the Item record.
- Claim: React Native keeps web's props and meaning, with the form name, width, styling props and the item's
aria-labelleft on the web. Verified in FR1 and DEC-2. - Claim:
labelanddescriptiontake plain text on both components, and core's rich label content stays on the web. Verified in FR1 (line 97); the representative state at line 126 and the verification row at line 204 now place controls in the end content. - Claim: a disabled option's reason shows on a tap and on keyboard focus, and a long press opens nothing. Verified in FR6 and AR3; the tap follows the Tooltip record's FR5, and keyboard focus follows the RadioList record's FR5 and AR3.
- Claim: Android draws Material's radio button at
size's side with the theme's tint, and iOS core's radio indicator. Verified in FR2 and DEC-1. - Claim: each option is one Item row that a tap chooses, with the React Native Item record's touch area and press feedback, in a column or a wrapping row. Verified in FR3, FR4 and DEC-3.
- Claim: a new choice calls
onChangeonce, the chosen option reports nothing, and a disabled option refuses while staying reachable with its state and the group's reason. Verified in FR5 and FR6. - Claim: screen readers meet one radio group, and with a hardware keyboard the arrow keys move the choice and stop on a disabled option. Verified in AR1–AR4.
- Claim: every place the implementing package differs is a gap line. Not verifiable here: that package is not in this repository.
- Claim: no rejected alternatives are recorded. Verified: the record has no rejected-alternative lines.
- Claim: the pull request is a specification only. Verified: it adds one Markdown record.
- Claim: the writing rubric finds no narration, references, rejected-alternative lines or project status. Verified: no issue or pull request references in the record, OQ1 is open with its two options, each gap line names its requirement and the mismatch, and "not yet released" appears only in the lifecycle field and the readiness cell.
- Claim: public text carries no internal context. Verified.
- Claim: the knowledge check, Prettier and the whitespace check pass. Verified: all three pass at this head.
- File
docs/specs/components/RadioList/RadioList.react-native.spec.md: no blocking finding; three non-blocking notes (the glance table, FR3's FR13 citation, the pending citations).
| | --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | | ||
| | FR1 | The React Native `RadioList` MUST take web's `label`, `value`, `onChange`, `children`, `isLabelHidden`, `description`, `orientation`, `isDisabled`, `disabledMessage`, `isRequired`, `isOptional`, `status`, `size` and `labelTooltip`, and `RadioListItem` web's `label`, `value`, `description`, `align`, `isDisabled`, `startContent` and `endContent`, with web's names, defaults and meaning, and the shared base props on RadioList's radio group and on RadioListItem's row, the parts `family:input-fields` FR10 and `component:RadioListItem` FR12 give them (`spec:AST-082` FR7). `children` holds `RadioListItem`s; `startContent` and `endContent` take React Native content. Both components' `label` and `description` take plain text: an option's `label` text names its radio, so every option has a name (`component:RadioListItem` AR1), and its `description` is the radio's hint; core's rich `label` content, and the `aria-label` that names an option whose label has no text, stay on the web. `htmlName`, `width`, the `container*` and `control*` styling props, and `RadioListItem`'s `aria-label` are not offered (DEC-2). Neither takes a visual prop. | `component:RadioList`; `component:RadioListItem` FR12; `family:input-fields` FR10; `spec:AST-082` FR3–FR5, FR7, DEC-2; `spec:AST-112` FR16; DEC-2 | settled | | ||
| | FR2 | On Android, an option's mark MUST be Material's radio button at `size`'s side (20 or 24 dp), tinted by the theme: the accent when chosen and the theme's emphasized border colour when not, with Material's own disabled dimming. On iOS, which has no radio control, and on Android where Material's radio button is absent, the mark is core's radio indicator drawn from the theme at `size`, as `component:Indicator` FR5 states (DEC-1). | `spec:AST-082` FR11; `spec:AST-093` FR2–FR4; `component:Indicator`; DEC-1 | verify | | ||
| | FR3 | Each option MUST be one row, laid out by `component:Item`: the mark followed by its start content (`component:RadioListItem` FR2), its label, its description and its end content, aligned by `align`. A tap anywhere on the row that is not a control inside it chooses the option; links and buttons in the start or end content keep their own behaviour. The row's touch area and press feedback are those of an interactive Item row, as `component:react-native/Item` AR7 and AV2 state. | `component:RadioListItem` FR4, FR13; `component:Item`; `component:react-native/Item` AR7, AV2 | verify | |
There was a problem hiding this comment.
Non-blocking (Miss): this basis cites component:RadioListItem FR13, the web's coarse-pointer band that grows toward 44 px up to halfway to a neighbour, but line 191 gives "the coarse-pointer hit band" to the web contract, and FR3's own text takes the touch area from component:react-native/Item AR7 (44 pt on iOS, 48 dp on Android). Drop FR13 here and from the Governing rules row (line 36), so an implementer does not apply the band on React Native.
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the new draft record component:react-native/RadioList, and one fix to the pull request description is needed.
An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. The requirements waiting on it are DEC-1 and FR2 (Material's radio button on Android, core's radio indicator on iOS), DEC-2 and FR1 (the web-only props, and plain-text label and description), DEC-3 and FR4 (a horizontal row that wraps), and FR3's touch area and press feedback taken from the open React Native Item record.
- The description's merge-order note says the record cites
spec:AST-112FR16 from #12563, but the record now cites FR10 and FR19 (lines 36 and 97) and #12563 has merged, so that sentence needs updating.
Non-blocking: the glance table's Governing rules and Builder impact rows still trail the body, FR3's basis and that table still cite RadioListItem's web-only coarse-pointer claims (FR13, AR3), and the record should land only after #12592, #12823 and #12556.
Claims and files checked
Review mode: full; reason: spec-record
- Stacked on the pull request that accepts React Native platform records and merges after it: verified (the base is that pull request's branch, still open).
- Merge order says the record cites the AST-112 amendment for FR16 and FR19: false (no FR16 citation at this head, lines 36 and 97; the amendment has merged).
- The record cites the open React Native Item record and points to the open platform-controls record for OQ1: verified (FR3, line 99; OQ1, lines 246–250; native pieces, line 183).
- The existing-authority list (core RadioList and RadioListItem, input fields, the native-first, focusable-disabled and native-guidelines records current; the platform-controls draft has no radio; the Item draft gives rows their touch area and press feedback and names RadioList; no other open React Native RadioList record): verified against
mainand the open pull requests. - The Decision bullets (props and web-only props, plain-text label and description, the disabled reason on a tap and keyboard focus but not a long press, the mark per platform, one Item row and a wrapping row, one change report, one radio group and the arrow keys stopping on a disabled option): verified (FR1–FR6, AR1–AR3).
- Every difference from the implementing package is a gap line: not checkable here (that package is not in this repository).
- Writing rubric results R1–R7: verified (no pull request references in the record; status only in the lifecycle field and readiness cell; OQ1 keeps its two options).
- Validation (knowledge check, Prettier, whitespace check): verified at this head.
- Follow-up: the record cites AST-112 FR10 for web parity, where an open restructure folds FR16: verified (FR10 already keeps core's names and contracts on
main; the restructure moves FR16 into it). docs/specs/components/RadioList/RadioList.react-native.spec.md: the owner decision above and three non-blocking notes; no defect in the record itself.
Stacked on #12592 (react-native records in the knowledge checks); merges after it.
Merge order: the record also cites the AST-112 amendment (#12563) for FR16 and FR19 and the React Native Item record (#12823), and points to the open platform-controls record
spec:AST-126(#12556) for the native piece behind Material's radio button (OQ1). It merges after those too.Exact decision needed
How React Native's
RadioListandRadioListItemimplementcomponent:RadioListandcomponent:RadioListItem: which props they offer, what draws an option's mark on each platform, the option row, how a choice and the disabled states behave, and how screen readers and a hardware keyboard reach them.Existing authority searched
component:RadioListandcomponent:RadioListItem(docs/specs/components/RadioList/, current): props, the radio group, choice reporting, disabled rules, keyboard and accessibility; no React Native rendering.family:input-fields(current): the field's label, description, markers and status.spec:AST-082(current): FR3–FR5 (core and platform contracts), FR7 (base props), FR11 (native-first) and DEC-2 (native-only visuals are theme configuration).spec:AST-085(current): disabled controls stay reachable and report their state and reason.spec:AST-093(current) FR2–FR4: the platform's control first; the theme reaches it.spec:AST-126(open draft): the platform control group, which has no radio; this record asks which native piece draws Material's radio button (OQ1).Decision
docs/specs/components/RadioList/RadioList.react-native.spec.md(component:react-native/RadioList,platform_of: component:RadioList), coveringRadioListItemas RadioList's option:RadioListandRadioListItemkeep web's props and meaning;htmlName,width, thecontainer*andcontrol*styling props andRadioListItem'saria-labelstay on the web (FR1, DEC-2).labelanddescriptiontake plain text on both components: an option's label text names its radio and its description is the hint; core's rich label content andaria-labelstay on the web (FR1).component:TooltipFR5 says; a long press opens nothing (FR6, AR3).size's side, tinted by the theme; on iOS, which has no radio control, it is core's radio indicator (component:IndicatorFR5) (FR2, DEC-1).onChangeonce; the chosen option reports nothing; a disabled option refuses and stays reachable with its state and the group's reason (FR5, FR6).@astryxdesign/react-native, the package that implements the record, differs is a gap line under the requirements.Rejected alternatives
None recorded in the record.
Claim scope and non-goals
The record covers only what React Native adds to
component:RadioListandcomponent:RadioListItemor does differently. The field, the row layout, the drawn indicator and the native piece behind Material's radio button stay with their owners, which the record's ownership lines name.Evidence and implementation relationship
The record is a specification only and has no implementation in this pull request. Each requirement was read against
@astryxdesign/react-native, the package that implements it, and every place where that package differs is one of the record's gap lines.Writing rubric results
Rejected:lines.FRn gapandARn gaplines; "not yet released" appears only in the template's lifecycle field and readiness cell.Scope
Components: RadioList, RadioListItem (React Native)
Validation
node scripts/check-knowledge.mjs: knowledge templates and records are aligned; no finding in this record.--checkclean on the record.git diff --check: clean.Follow-up: claims moved from
spec:AST-112Cites
spec:AST-112FR10 for web parity, where #13029 folds FR16.