Skip to content

feat(step-sequence): align with Fusion DS#8070

Draft
nuria1110 wants to merge 1 commit into
masterfrom
step-sequence-audit
Draft

feat(step-sequence): align with Fusion DS#8070
nuria1110 wants to merge 1 commit into
masterfrom
step-sequence-audit

Conversation

@nuria1110

Copy link
Copy Markdown
Contributor

Proposed behaviour

Aligns StepSequence component to Fusion DS

  • Updates styles and applies fusion-tokens.
  • Deprecates hideIndicator prop in StepSequenceItem.
  • Adds size prop to StepSequence with "small" and "medium" options.
  • Adds description prop to StepSequenceItem.
image image

Current behaviour

StepSequence is not aligned to Fusion DS.

Checklist

  • Commits follow our style guide
  • Related issues linked in commit messages if required
  • Screenshots are included in the PR if useful
  • All themes are supported if required
  • Unit tests added or updated if required
  • Playwright automation tests added or updated if required
  • Storybook added or updated if required
  • Translations added or updated (including creating or amending translation keys table in storybook) if required
  • Typescript d.ts file added or updated if required
  • Related docs have been updated if required

QA

  • Tested in provided StackBlitz sandbox/Storybook
  • Add new Playwright test coverage if required
  • Carbon implementation matches Design System/designs
  • UI Tests GitHub check reviewed if required

Additional context

Testing instructions

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Warning

  • Copilot's review of this pull request may be incomplete because some of the changed files are excluded by your Copilot content exclusion settings. See Excluding content from Copilot for details.

Pull request overview

Aligns the StepSequence / StepSequenceItem components to Fusion DS by updating styling to use Fusion tokens and expanding the component API to support size and richer step content.

Changes:

  • Updated StepSequence/Item styling to new Fusion token-based visuals (orientation + sizing).
  • Added size prop to StepSequence and description prop to StepSequenceItem; deprecated hideIndicator.
  • Updated Storybook docs/stories and streamlined Playwright + unit tests around the new behavior.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/components/step-sequence/step-sequence.style.ts Updates StepSequence layout styling and keeps styled-system spacing support.
src/components/step-sequence/step-sequence.component.tsx Adds size prop + context value; attempts to filter styled-system spacing props.
src/components/step-sequence/internal/step-sequence.context.ts Extends context to include size with default "medium".
src/components/step-sequence/step-sequence-item/step-sequence-item.style.ts Major restyle for indicators/lines/titles/descriptions with size maps and Fusion tokens.
src/components/step-sequence/step-sequence-item/step-sequence-item.component.tsx Renders new indicator/line/title/description layout; deprecates hideIndicator.
src/components/icon/icon.style.ts Adds .step-indicator override so icons inherit sizing/color in the new indicator.
src/components/step-sequence/step-sequence.stories.tsx Reworks stories to focus on orientation/size/description examples and sets subcomponents.
src/components/step-sequence/step-sequence.mdx Updates docs content to match new API and examples.
src/components/step-sequence/step-sequence-test.stories.tsx Refactors Chromatic snapshots to cover new variants (size/orientation/description).
src/components/step-sequence/step-sequence.pw.tsx Simplifies Playwright coverage, focusing on a11y for key variants.
src/components/step-sequence/components.test-pw.tsx Renames/adjusts helper components used by Playwright tests.
src/components/step-sequence/step-sequence-item/step-sequence-item.test.tsx Updates tests for new icon type + description; removes hideIndicator test.
src/components/step-sequence/step-sequence-item/step-sequence-item.stories.tsx Removes the dev-only props-table story for StepSequenceItem.
skills/carbon-react/components/step-sequence.md Documentation update (content excluded from review).
skills/carbon-react/components/step-sequence-item.md Documentation update (content excluded from review).
Files excluded by content exclusion policy (2)
  • skills/carbon-react/components/step-sequence-item.md
  • skills/carbon-react/components/step-sequence.md

Comment on lines 24 to 29
<StyledStepSequence
orientation={orientation}
p={0}
$orientation={orientation}
{...props}
{...filterOutStyledSystemSpacingProps(props)}
{...tagComponent("step-sequence", props)}
>
Comment on lines 18 to +25
export interface StepSequenceItemProps extends TagProps {
/** Aria label */
/** Aria label for the step item. */
ariaLabel?: string;
/** Hidden label to be displayed if item is complete */
/** Hidden accessible label to be rendered if item is complete. */
hiddenCompleteLabel?: string;
/** Hidden label to be displayed if item is current */
/** Hidden accessible label to be rendered if item is current. */
hiddenCurrentLabel?: string;
/** Value to be displayed before text for incomplete steps */
/** Indicator for the step. */

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Deprecated ariaLabel and advised to use native aria-label instead.

Comment on lines 40 to 43
export const StepSequenceItem = ({
hideIndicator = false,
hideIndicator,
indicator,
status = "incomplete",
Comment on lines 70 to +74
aria-label={ariaLabel}
ref={ref}
{...rest}
{...tagComponent("step-sequence-item", rest)}
className="step-sequence-item"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Consumers are advised to not target Carbon internals, including classNames.

@nuria1110 nuria1110 force-pushed the step-sequence-audit branch from da0ac7d to 7c97267 Compare July 10, 2026 09:58
Aligns StepSequence component to Fusion DS. Updates styles and applies fusion-tokens.
Deprecates `hideIndicator` prop in StepSequenceItem.
@nuria1110 nuria1110 force-pushed the step-sequence-audit branch from 7c97267 to c9348d6 Compare July 10, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants