Repository navigation
docs(spec): Stepper records its shipped contract as current - #8672
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report
|
There was a problem hiding this comment.
Approval of the new component:Step record waits on an engineering-owner decision: FR1–FR9, ORD1–ORD2 and AR1–AR4 are new normative claims, and no owner has approved them on an exact head yet. Any engineering owner listed in .github/ENGOWNERS records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner. A few claims should first be corrected to match the shipped Step, so that the approval lands on the corrected head:
- AR2 and FR4 (lines 98 and 133–134) promise a non-colour status cue in every indicator mode, but
indicator="number"shows status by badge colour alone and not at all on not-started steps, so scope them toindicator="auto"and list thenumber-mode gap under Current-state impact. - FR3 (line 97) says
autoshows the number until completed, but the in-progress step shows the ring, and a string that is not a preset falls back to the ring or check instead of rendering as given (lines 89 and 97). - FR2 (line 96) puts "its content" in the button although the content slot always renders outside it, and FR6 (line 100) claims the label's disabled paint, which the Stepper record owns.
[Automated review]
| | FR1 | A Step renders one `<li>`. Its progress is `in-progress` when `step` equals the Stepper's active step, `completed` when it is lower, and `not-started` when higher; only the in-progress step carries `aria-current="step"`. It registers its index and a live disabled check with the Stepper. | Current source and tests | | ||
| | FR2 | With `onStepClick` on the Stepper, an enabled Step outside compact mode wraps its content in a `<button>` named by `@astryx.step.goToStep` ("Go to step N: label") or `.goToStepWithStatus` when a status word applies; activation (click, Enter, Space) calls `onStepClick(step)`. Completed, in-progress, and upcoming steps are all clickable. Any Step without `onStepClick` renders no button. A disabled Step in a clickable Stepper MUST stay focusable with `aria-disabled="true"` and keep its tab stop (`spec:AST-085` FR1, FR5). Implementation gap: it renders no button, so it leaves the tab order and exposes no disabled state. | Current source and tests | | ||
| | FR3 | `indicator="auto"` shows the step number until completed, then a check; `number` always shows the number; `none` shows nothing; a node renders as given. Indicators are `aria-hidden`. | Current source and tests | | ||
| | FR4 | `status` recolors the indicator only; the progress bar keeps progress coloring. A non-current step with `success`, `warning`, or `error` shows a distinct status glyph (replacing the number on not-started steps); the current step keeps its ring indicator. | Current source and tests | |
There was a problem hiding this comment.
The status glyph and the ring only apply to indicator="auto" without a custom node (Step.tsx builds statusGlyph only when indicator === 'auto' and no custom indicator is given). With indicator="number", a reached step keeps its number on a status-coloured badge, a not-started step with a status shows the same neutral badge as a plain step, and the current step shows its number rather than a ring. Suggest scoping FR4 to the auto indicator.
| - **AR2 — Non-color status.** FR4's glyphs and FR5's hidden text carry status | ||
| beyond color; indicators stay hidden from assistive technology. |
There was a problem hiding this comment.
In number mode (and with a custom node) there is no glyph, so status reaches sighted users by colour alone, and not at all on a not-started step; only the visually hidden word carries it. That conflicts with the Review checks row (line 38) and with the WCAG 1.4.1 and forced-colours non-colour-cue rules, so it reads as a second current-state gap rather than conformance. Suggest narrowing AR2 to auto and adding the gap under Current-state impact, or recording an owner decision that number mode is exempt.
| | --- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | | ||
| | FR1 | A Step renders one `<li>`. Its progress is `in-progress` when `step` equals the Stepper's active step, `completed` when it is lower, and `not-started` when higher; only the in-progress step carries `aria-current="step"`. It registers its index and a live disabled check with the Stepper. | Current source and tests | | ||
| | FR2 | With `onStepClick` on the Stepper, an enabled Step outside compact mode wraps its content in a `<button>` named by `@astryx.step.goToStep` ("Go to step N: label") or `.goToStepWithStatus` when a status word applies; activation (click, Enter, Space) calls `onStepClick(step)`. Completed, in-progress, and upcoming steps are all clickable. Any Step without `onStepClick` renders no button. A disabled Step in a clickable Stepper MUST stay focusable with `aria-disabled="true"` and keep its tab stop (`spec:AST-085` FR1, FR5). Implementation gap: it renders no button, so it leaves the tab order and exposes no disabled state. | Current source and tests | | ||
| | FR3 | `indicator="auto"` shows the step number until completed, then a check; `number` always shows the number; `none` shows nothing; a node renders as given. Indicators are `aria-hidden`. | Current source and tests | |
There was a problem hiding this comment.
Under auto the number shows only while a step is not started; the in-progress step shows the ring and a completed one the check, as FR4 and the In progress state (line 115) already say. Also, indicator accepts any string through ReactNode, but every string is treated as a preset name, so indicator="A" renders the ring or the check rather than "A". Suggest: "shows the number while not started, the ring while in progress, and a check once completed; a non-string node renders as given".
| | ID | Invariant | Basis | | ||
| | --- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | | ||
| | FR1 | A Step renders one `<li>`. Its progress is `in-progress` when `step` equals the Stepper's active step, `completed` when it is lower, and `not-started` when higher; only the in-progress step carries `aria-current="step"`. It registers its index and a live disabled check with the Stepper. | Current source and tests | | ||
| | FR2 | With `onStepClick` on the Stepper, an enabled Step outside compact mode wraps its content in a `<button>` named by `@astryx.step.goToStep` ("Go to step N: label") or `.goToStepWithStatus` when a status word applies; activation (click, Enter, Space) calls `onStepClick(step)`. Completed, in-progress, and upcoming steps are all clickable. Any Step without `onStepClick` renders no button. A disabled Step in a clickable Stepper MUST stay focusable with `aria-disabled="true"` and keep its tab stop (`spec:AST-085` FR1, FR5). Implementation gap: it renders no button, so it leaves the tab order and exposes no disabled state. | Current source and tests | |
There was a problem hiding this comment.
In every layout the button holds the indicator, label and description; the content slot (children) and the progress bar render outside it, since a button cannot contain the form controls a content slot usually holds. Suggest "wraps its indicator, label, and description in a <button>; the content slot stays outside it".
| | FR3 | `indicator="auto"` shows the step number until completed, then a check; `number` always shows the number; `none` shows nothing; a node renders as given. Indicators are `aria-hidden`. | Current source and tests | | ||
| | FR4 | `status` recolors the indicator only; the progress bar keeps progress coloring. A non-current step with `success`, `warning`, or `error` shows a distinct status glyph (replacing the number on not-started steps); the current step keeps its ring indicator. | Current source and tests | | ||
| | FR5 | Each Step exposes a visually hidden status word: `error` or `warning` for those statuses, `completed` when completed or `success`, in every layout. | Current source and tests | | ||
| | FR6 | `isDisabled` dims the indicator and label and blocks activation (FR2's implementation gap). `isOptional` appends the translated `@astryx.step.optional` ("Optional") after the label. `endContent` sits at the end of the label row. | Current source and tests | |
There was a problem hiding this comment.
The label's disabled paint is Label paint, which the Stepper record owns (its FR10: "only Label owns disabled paint") and which this record's non-goals (lines 75–78) disclaim. Suggest keeping the indicator dimming here and citing the Stepper record for the label.
…ndicator, button, and label rows
There was a problem hiding this comment.
Approval of the new component:Step record waits on an engineering-owner decision: FR1–FR9, ORD1–ORD2 and AR1–AR4 are new normative claims, and no owner has approved them on an exact head yet. The earlier corrections are in, but a few claims still need fixing so that the approval lands on the corrected head; then any engineering owner listed in .github/ENGOWNERS records the decision by commenting /approve-spec <full head SHA>, and the author may do so if they are an engineering owner.
- FR2 and Current-state impact (lines 60–63 and 101) should also cite
spec:AST-085FR4, because a focused step that becomes disabled loses its button and focus drops to the page, and the MUST should say "outside compact mode". - AR3 (lines 142–143) fixes the clickable name at number, label and status, so a clickable step's description, "Optional" cue and
endContentnever reach assistive technology; record that as a gap or carry them in the name or a description. - The custom-node and
nonecases (lines 64–68 and 140–141), the two tested claims listed as untested in the verification map (lines 172–178) and the unstated fallback for other indicator strings (lines 94 and 102) also need correcting.
[Automated review]
| | ID | Invariant | Basis | | ||
| | --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | | ||
| | FR1 | A Step renders one `<li>`. Its progress is `in-progress` when `step` equals the Stepper's active step, `completed` when it is lower, and `not-started` when higher; only the in-progress step carries `aria-current="step"`. It registers its index and a live disabled check with the Stepper. | Current source and tests | | ||
| | FR2 | With `onStepClick` on the Stepper, an enabled Step outside compact mode wraps its indicator, label, and description in a `<button>` (the content slot stays outside it) named by `@astryx.step.goToStep` ("Go to step N: label") or `.goToStepWithStatus` when a status word applies; activation (click, Enter, Space) calls `onStepClick(step)`. Completed, in-progress, and upcoming steps are all clickable. Any Step without `onStepClick` renders no button. A disabled Step in a clickable Stepper MUST stay focusable with `aria-disabled="true"` and keep its tab stop (`spec:AST-085` FR1, FR5). Implementation gap: it renders no button, so it leaves the tab order and exposes no disabled state. | Current source and tests | |
There was a problem hiding this comment.
When a focused step becomes disabled, Step swaps its <button> for a <div> and focus drops to the page; spec:AST-085 FR4 keeps focus on a control that becomes disabled and has the component's record name the destination when a focused control is removed. Suggest citing FR4 beside FR1 and FR5, adding the focus loss to this gap and to Current-state impact, and saying "outside compact mode", since a compact step has no tab stop when enabled either.
| | --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | | ||
| | FR1 | A Step renders one `<li>`. Its progress is `in-progress` when `step` equals the Stepper's active step, `completed` when it is lower, and `not-started` when higher; only the in-progress step carries `aria-current="step"`. It registers its index and a live disabled check with the Stepper. | Current source and tests | | ||
| | FR2 | With `onStepClick` on the Stepper, an enabled Step outside compact mode wraps its indicator, label, and description in a `<button>` (the content slot stays outside it) named by `@astryx.step.goToStep` ("Go to step N: label") or `.goToStepWithStatus` when a status word applies; activation (click, Enter, Space) calls `onStepClick(step)`. Completed, in-progress, and upcoming steps are all clickable. Any Step without `onStepClick` renders no button. A disabled Step in a clickable Stepper MUST stay focusable with `aria-disabled="true"` and keep its tab stop (`spec:AST-085` FR1, FR5). Implementation gap: it renders no button, so it leaves the tab order and exposes no disabled state. | Current source and tests | | ||
| | FR3 | `indicator="auto"` shows the number while not started, the ring while in progress, and a check once completed; `number` always shows the number; `none` shows nothing; a non-string node renders as given, and any other string is read as a preset name. Indicators are `aria-hidden`. | Current source and tests | |
There was a problem hiding this comment.
"Read as a preset name" does not say what a person sees: with indicator="A" the not-started and current steps show the ring and a completed step shows the check, with no number, status glyph or status color. Suggest stating that fallback here and in the Indicator row's invalid-value cell (line 94).
| - **AR3 — Clickable name.** FR2's button name includes the step number, label, | ||
| and status word. |
There was a problem hiding this comment.
The button's aria-label replaces its content and nothing describes it, so the description, the "Optional" cue and endContent never reach assistive technology: Chromium names the Optional story's second step "Go to step 2: Profile photo, completed" while it shows "Optional" and "Skipped". Suggest recording this under Current-state impact (WCAG 1.3.1) or carrying them in the name or a description.
| - **Other indicator modes show status by color alone.** With | ||
| `indicator="number"` or a custom node there is no status glyph: a reached step | ||
| shows status only through badge color, and a not-started step shows none. Only | ||
| the visually hidden word carries it. WCAG 1.4.1 requires information not to be | ||
| conveyed by color alone. |
There was a problem hiding this comment.
This holds for number. A custom node has no badge, and its wrapper takes the status color on every step, not-started and current included; indicator="none" draws no indicator, so status shows only in the hidden word. Suggest stating the three modes separately here and in AR2.
| - FR3: the check after completion under `auto`, and the `number` mode. | ||
| - FR6: the dimmed disabled paint, the optional cue, and `endContent`. | ||
| - FR7. | ||
| - FR8: children staying mounted and hidden in a compact Stepper, and the | ||
| one-line label. |
There was a problem hiding this comment.
Two of these have focused tests: "renders step numbers" asserts indicator="number" badges, and "keeps %s step content mounted across compact resizing" asserts that a step's input keeps its value while hidden in a compact Stepper, in both indicator positions. Suggest moving them into the rows above.
… clickable text; credits tested claims
There was a problem hiding this comment.
Approval of the new component:Step record waits on an engineering-owner decision: FR1–FR9, ORD1–ORD2 and AR1–AR4 are new normative claims, including FR2's rule that a disabled step in a clickable Stepper stays a focusable aria-disabled tab stop, and no owner has approved them on an exact head yet. Every correction from the earlier reviews is in; four more should land first so the approval covers the corrected text, and then any engineering owner listed in .github/ENGOWNERS records the decision by commenting /approve-spec <full head SHA>, and the author may do so if they are an engineering owner.
- FR4 (line 111) should say where status leaves the indicator alone: under
autothe current step's ring andaccentkeep progress color, as the test "lets the current step keep its ring indicator regardless of status" pins, andnumberrecolors only reached badges. - FR7 (line 114) should cover density's inline padding, which is 12px for spacious separated steps and applies on both axes for vertical on-track steps.
- The verification map (lines 179–189) should list
auto's number on a not-started step andnone's empty indicator as untested, and the glance table (line 35) should not say users see every step's number.
[Automated review]
| | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| | Public contract | `Step` with `step`, `label`, `description`, `children`, `status`, `indicator` (`auto`, `number`, `none`, or a node; default `auto`), `isDisabled`, `isOptional`, `endContent`, and `density`. | | ||
| | Behavior | One list item of a Stepper. Its progress (completed, in progress, not started) comes from its `step` index against the Stepper's active step; it is a button that asks to go to that step when the Stepper has `onStepClick`, it is enabled, and the Stepper is not compact. | | ||
| | End-user impact | Users see each step's number, completion, and status; screen-reader users hear the current step, a status word, and a "Go to step N" name on clickable steps; keyboard users Tab between enabled clickable steps. | |
There was a problem hiding this comment.
Under the default auto, a completed step shows a check and the current step a ring, and none shows no indicator, so users do not see each step's number. Suggest: "Users see each step's progress (number, ring or check) and its status cue where one applies."
| | FR1 | A Step renders one `<li>`. Its progress is `in-progress` when `step` equals the Stepper's active step, `completed` when it is lower, and `not-started` when higher; only the in-progress step carries `aria-current="step"`. It registers its index and a live disabled check with the Stepper. | Current source and tests | | ||
| | FR2 | With `onStepClick` on the Stepper, an enabled Step outside compact mode wraps its indicator, label, and description in a `<button>` (the content slot stays outside it) named by `@astryx.step.goToStep` ("Go to step N: label") or `.goToStepWithStatus` when a status word applies; activation (click, Enter, Space) calls `onStepClick(step)`. Completed, in-progress, and upcoming steps are all clickable. Any Step without `onStepClick` renders no button. A disabled Step in a clickable Stepper outside compact mode MUST stay focusable with `aria-disabled="true"` and keep its tab stop (`spec:AST-085` FR1, FR5). Implementation gap: it renders no button, so it leaves the tab order, exposes no disabled state, and drops focus when it becomes disabled while focused (`spec:AST-085` FR4). | Current source and tests | | ||
| | FR3 | `indicator="auto"` shows the number while not started, the ring while in progress, and a check once completed; `number` always shows the number; `none` shows nothing; a non-string node renders as given; any other string falls back to the ring while not started or in progress and the check once completed, with no number, status glyph, or status color. Indicators are `aria-hidden`. | Current source and tests | | ||
| | FR4 | `status` recolors the indicator only; the progress bar keeps progress coloring. With `indicator="auto"`, a non-current step with `success`, `warning`, or `error` shows a distinct status glyph (replacing the number on not-started steps); the current step keeps its ring indicator. | Current source and tests | |
There was a problem hiding this comment.
Under indicator="auto" the current step's ring keeps the in-progress accent for every status (Step.tsx lines 1138–1144 and 1243–1247), accent changes no paint, and under number a not-started badge stays neutral for every status. The test "lets the current step keep its ring indicator regardless of status" pins the ring's color. Suggest: "status never recolors the bar. Under auto it recolors a non-current step with success, warning or error and swaps its glyph; the current step's ring and accent keep progress color. Under number it recolors reached badges only."
| | FR4 | `status` recolors the indicator only; the progress bar keeps progress coloring. With `indicator="auto"`, a non-current step with `success`, `warning`, or `error` shows a distinct status glyph (replacing the number on not-started steps); the current step keeps its ring indicator. | Current source and tests | | ||
| | FR5 | Each Step exposes a visually hidden status word: `error` or `warning` for those statuses, `completed` when completed or `success`, in every layout. | Current source and tests | | ||
| | FR6 | `isDisabled` dims the indicator (the label's disabled paint is `component:Stepper` FR10) and blocks activation (FR2's implementation gap). `isOptional` appends the translated `@astryx.step.optional` ("Optional") after the label. `endContent` sits at the end of the label row. | Current source and tests | | ||
| | FR7 | `density` sets the Step's vertical padding and falls back to the Stepper's density. | Current source | |
There was a problem hiding this comment.
Density also sets inline padding: spacious widens a separated step's inline padding from 8px to 12px (separatedDensityInline, Step.tsx lines 1049–1052), and a vertical on-track step pads both axes by the density space (otRowPadV, lines 942–945). The prop's JSDoc reads "'spacious': generous (12px block, 12px inline)". Suggest: "sets the Step's padding: block padding in every layout, plus inline padding for spacious separated steps and vertical on-track steps".
| | ------------ | ------------------------------------------------------------------- | ------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -------------------------- | | ||
| | FR1 | `Stepper.test.tsx` list and aria-current tests | Each progress | Wrong current step fails. | `audit:Step/accessibility` | | ||
| | FR2, AR3–AR4 | `Stepper.test.tsx` onStepClick, keyboard, and accessible-name tests | Completed, active, upcoming, disabled | A missing button or wrong name fails; the disabled-step and Tab-skip assertions pin FR2's implementation gap (pending conformance). | `audit:Step/behavior` | | ||
| | FR3, FR4 | `Stepper.test.tsx` step-number, indicator, and status glyph tests | Each indicator mode and status | Wrong glyph or recolored bar fails. | `audit:Step/behavior` | |
There was a problem hiding this comment.
No test asserts auto's number on a not-started step: "renders step numbers" and "keeps the number and label apart" pass indicator="number". The only indicator="none" test, "leaves the track unbroken when there is no indicator to avoid", checks the connector clip, not an empty indicator. Suggest adding both cases to "Read from source, with no focused test yet".
…ity padding, and untested indicator cases
There was a problem hiding this comment.
Approval of the new component:Step record waits on an engineering-owner decision: FR1–FR9, ORD1–ORD2 and AR1–AR4 are new normative claims, including FR2's rule that a disabled step in a clickable Stepper stays a focusable aria-disabled tab stop, and no owner has approved them on an exact head yet. The FR4, FR7, verification-map and glance-table corrections are in; three more should land first so the approval covers the corrected text, and then any engineering owner listed in .github/ENGOWNERS records the decision by commenting /approve-spec <full head SHA>, and the author may do so if they are an engineering owner.
- AR2 and the second Current-state impact bullet (lines 146–150 and 66–71) should name the
autocurrent step besidenone: its ring and label keep progress color whatever itsstatus, so that status reaches only the hidden word. - FR6 (line 113) should say the indicator's dimming is fixed paint with no theme state, because
component:StepperFR10 says only Label owns disabled paint. - The Owns list (lines 82–84) should claim where
childrenrender and how they stay mounted rather than "the content slot", whichcomponent:Stepperlists as caller-owned.
[Automated review]
| - **AR2 — Non-color status.** With `indicator="auto"`, FR4's glyphs and FR5's | ||
| hidden text carry status beyond color; indicators stay hidden from assistive | ||
| technology. Implementation gap: in `number`, custom-node, and `none` modes | ||
| status shows by color alone or only in the hidden word (Current-state | ||
| impact). |
There was a problem hiding this comment.
Under auto the current step keeps its ring and label color whatever its status (Step.tsx:1141, :1243-1247, :1298-1304), so its status reaches only the hidden word, the same condition this record calls a gap for none. Suggest naming the auto current step beside none here and in the second Current-state impact bullet, or stating that the ring deliberately hides the current step's status.
| | FR3 | `indicator="auto"` shows the number while not started, the ring while in progress, and a check once completed; `number` always shows the number; `none` shows nothing; a non-string node renders as given; any other string falls back to the ring while not started or in progress and the check once completed, with no number, status glyph, or status color. Indicators are `aria-hidden`. | Current source and tests | | ||
| | FR4 | `status` never recolors the progress bar. Under `indicator="auto"` it recolors a non-current step with `success`, `warning`, or `error` and shows a distinct status glyph (replacing the number on not-started steps); the current step's ring and `accent` keep progress color. Under `number` it recolors reached badges only. | Current source and tests | | ||
| | FR5 | Each Step exposes a visually hidden status word: `error` or `warning` for those statuses, `completed` when completed or `success`, in every layout. | Current source and tests | | ||
| | FR6 | `isDisabled` dims the indicator (the label's disabled paint is `component:Stepper` FR10) and blocks activation (FR2's implementation gap). `isOptional` appends the translated `@astryx.step.optional` ("Optional") after the label. `endContent` sits at the end of the label row. | Current source and tests | |
There was a problem hiding this comment.
component:Stepper FR10 says "only Label owns disabled paint", yet this line gives the indicator disabled dimming, and the shipped step-indicator target carries no disabled state (Step.tsx:1179-1182, :1253-1256). Suggest saying the indicator's dimming is fixed paint with no theme state, leaving the disabled selector to Label under Stepper FR10.
| - Progress derivation, indicator selection, status glyphs and text, the | ||
| clickable button, disabled and optional handling, density fallback, and the | ||
| content slot (FR1–FR8). |
There was a problem hiding this comment.
component:Stepper lists "The step content slot and any endContent" as owned by the caller. Suggest "where children render and how they stay mounted (FR8)" so the two records agree; line 94 already gives children to the caller.
…isabled paint, and children placement
There was a problem hiding this comment.
Approval of the new component:Step record waits on an engineering-owner decision: FR1–FR9, ORD1–ORD2 and AR1–AR4 are new normative claims, including FR2's rule that a disabled step in a clickable Stepper stays a focusable aria-disabled tab stop, and no owner has approved them on an exact head yet. The earlier corrections are all in; one more should land first so the approval covers the corrected text, and then any engineering owner listed in .github/ENGOWNERS records the decision by commenting /approve-spec <full head SHA>, and the author may do so if they are an engineering owner.
- The Intent (line 47) still says Step owns "its optional and content slots", while the Stepper record lists the step content slot as caller-owned and this record's Owns list now claims only where
childrenrender; wording such as "…its clickable form, its optional cue, and where its content renders" keeps one owner.
[Automated review]
|
|
||
| Step is one stage of a Stepper flow. It owns its progress derivation, its | ||
| indicator choice, its status cues and text alternatives, its clickable form, | ||
| and its optional and content slots. Consumer usage lives in `Step.doc.mjs`. |
There was a problem hiding this comment.
This still gives Step "its optional and content slots", while component:Stepper lists "The step content slot and any endContent — owned by the caller" and this record's Owns list (line 86) now claims only where children render. Suggest: "…its clickable form, its optional cue, and where its content renders."
There was a problem hiding this comment.
Approval of the new component:Step record waits on an engineering-owner decision: FR1–FR9, ORD1–ORD2 and AR1–AR4 are new normative claims, including FR2's rule that a disabled step in a clickable Stepper stays a focusable aria-disabled tab stop, and no owner has approved them on this head yet. Every correction raised in earlier reviews, the Intent's content-slot wording included, is in, and nothing else needs to change. Any engineering owner listed in .github/ENGOWNERS records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner.
[Automated review]
|
/approve-spec a5259e6 |
Exact decision needed
Record the shipped behavior of Step as a current component contract.
component:Stepperis unchanged: it owns the step targets, connector, Label and Description paint, and compact layout, and claims no Step behavior that this record takes over. No behavior, prop, default, target, or export changes.Existing authority searched
component:Stepper(current) owns everystep-*target, the connector and its gap, Label and Description paint, and the compact horizontal presentation (FR1–FR16). Step delegates all of those to it and restates none..doc.mjs, so it gets its own record.spec:AST-085(focusable disabled controls) andarchitecture:interaction-modalitygovern the recorded gap and the focus outline.packages/core/src/Stepper/.Decision
component:Step,authority: current, approved by cixzhang: progress derived fromstepagainst the active step andaria-current="step"; the clickable button and its "Go to step" name; indicator modes; status color, glyphs, and hidden status text; disabled, optional, and end content; density fallback; the content slot; and the focus outline (FR1–FR9).Rejected alternatives
None.
Claim scope and non-goals
The active step, orientation, indicator position, and
onStepClickstay with the Stepper and its caller. Claims read from source without a focused test are listed under the verification map.Evidence and implementation relationship
Stepper.test.tsx(list items, aria-current, onStepClick, keyboard activation, disabled, indicators and status glyphs, hidden status text, accessible names, on-track layouts).Current-state impact: in a clickable Stepper a disabled Step renders no button, so it leaves the tab order and exposes no disabled state (
spec:AST-085FR1, FR5). The tests that assert that skip pin the gap and are marked pending conformance. Also, withindicator="number"or a custom node there is no status glyph, so status reaches sighted users by color alone (WCAG 1.4.1).Writing rubric results
Scope
Validation
pnpm check:knowledge: alignedgit diff --check: clean