Skip to content

docs(spec): Stepper records its shipped contract as current - #8672

Merged
cixzhang merged 7 commits into
mainfrom
spec-backfill/Stepper
Oct 27, 2026
Merged

cixzhang merged 7 commits into
mainfrom
spec-backfill/Stepper

Conversation

@cixzhang

@cixzhang cixzhang commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Exact decision needed

Record the shipped behavior of Step as a current component contract. component:Stepper is 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 every step-* 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.
  • Step has its own .doc.mjs, so it gets its own record.
  • spec:AST-085 (focusable disabled controls) and architecture:interaction-modality govern the recorded gap and the focus outline.
  • Open PRs: none edits a record under packages/core/src/Stepper/.

Decision

component:Step, authority: current, approved by cixzhang: progress derived from step against the active step and aria-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 onStepClick stay 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-085 FR1, FR5). The tests that assert that skip pin the gap and are marked pending conformance. Also, with indicator="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

  • R1 narration: none.
  • R2 research in the record: none.
  • R3 evidence naming a change: none.
  • R4 rejected alternatives over one line or outside a decision: none.
  • R5 pull request or issue references remaining: none.
  • R6 ruled open questions still listing options: none.

Scope

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract: none beyond public roles, attributes, and translated message keys.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; no ownership collision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

Validation

  • pnpm check:knowledge: aligned
  • Prettier: clean
  • git diff --check: clean

@vercel

vercel Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 27, 2026 4:18pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Oct 27, 2026, 4:38 PM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Oct 27, 2026
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Previews ready: Storybook and Sandbox were built with this PR's docsite. CI evidence will be added when available.

View Storybook for this PR · View Sandbox for this PR

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 27, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 to indicator="auto" and list the number-mode gap under Current-state impact.
  • FR3 (line 97) says auto shows 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]

Comment thread packages/core/src/Stepper/Step.spec.md Outdated
| 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 |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread packages/core/src/Stepper/Step.spec.md Outdated
Comment on lines +133 to +134
- **AR2 — Non-color status.** FR4's glyphs and FR5's hidden text carry status
beyond color; indicators stay hidden from assistive technology.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread packages/core/src/Stepper/Step.spec.md Outdated
| --- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| 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 |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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".

Comment thread packages/core/src/Stepper/Step.spec.md Outdated
| 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 |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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".

Comment thread packages/core/src/Stepper/Step.spec.md Outdated
| 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 |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-085 FR4, 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 endContent never reach assistive technology; record that as a gap or carry them in the name or a description.
  • The custom-node and none cases (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]

Comment thread packages/core/src/Stepper/Step.spec.md Outdated
| 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 |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread packages/core/src/Stepper/Step.spec.md Outdated
| --- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| 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 |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"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).

Comment thread packages/core/src/Stepper/Step.spec.md Outdated
Comment on lines +142 to +143
- **AR3 — Clickable name.** FR2's button name includes the step number, label,
and status word.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread packages/core/src/Stepper/Step.spec.md Outdated
Comment on lines +64 to +68
- **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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread packages/core/src/Stepper/Step.spec.md Outdated
Comment on lines +174 to +178
- 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 auto the current step's ring and accent keep progress color, as the test "lets the current step keep its ring indicator regardless of status" pins, and number recolors 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 and none's empty indicator as untested, and the glance table (line 35) should not say users see every step's number.

[Automated review]

Comment thread packages/core/src/Stepper/Step.spec.md Outdated
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 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. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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."

Comment thread packages/core/src/Stepper/Step.spec.md Outdated
| 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 |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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."

Comment thread packages/core/src/Stepper/Step.spec.md Outdated
| 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 |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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` |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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".

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 auto current step beside none: its ring and label keep progress color whatever its status, 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:Stepper FR10 says only Label owns disabled paint.
  • The Owns list (lines 82–84) should claim where children render and how they stay mounted rather than "the content slot", which component:Stepper lists as caller-owned.

[Automated review]

Comment on lines +146 to +150
- **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).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread packages/core/src/Stepper/Step.spec.md Outdated
| 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 |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread packages/core/src/Stepper/Step.spec.md Outdated
Comment on lines +82 to +84
- Progress derivation, indicator selection, status glyphs and text, the
clickable button, disabled and optional handling, density fallback, and the
content slot (FR1–FR8).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 children render; wording such as "…its clickable form, its optional cue, and where its content renders" keeps one owner.

[Automated review]

Comment thread packages/core/src/Stepper/Step.spec.md Outdated

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`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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."

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec a5259e6

@github-actions github-actions Bot added spec-auto-merge Auto-merge was enabled by the spec owner gate and removed needs:spec-owner-review Current knowledge records await owner approval labels Oct 27, 2026
@cixzhang
cixzhang merged commit 1987ebd into main Oct 27, 2026
55 checks passed
vjeux added a commit to vjeux/astryx that referenced this pull request Oct 27, 2026
…eta#8297, meta#8650, meta#8672) into meta#8203

# Conflicts:
#	packages/core/src/BottomSheet/BottomSheet.tsx
@github-actions
github-actions Bot deleted the spec-backfill/Stepper branch October 28, 2026 06:17

This branch was successfully deployed

1 active deployment
Preview — a5259e6b Deployed Oct 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. spec-auto-merge Auto-merge was enabled by the spec owner gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant