Skip to content

fix(lab): replace hardcoded spacing in Stepper with spacing tokens#4189

Open
cixzhang wants to merge 1 commit into
mainfrom
fix/hardening-audit-2026-07-22
Open

fix(lab): replace hardcoded spacing in Stepper with spacing tokens#4189
cixzhang wants to merge 1 commit into
mainfrom
fix/hardening-audit-2026-07-22

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

Replace hardcoded spacing values in the Stepper component (lab) with spacing token references.

Changes:

  • Stepper.tsx: replaced raw '2px' gap constant with spacingVars['--spacing-0-5']
  • Step.tsx: replaced raw '4px' bar width constant with spacingVars['--spacing-1']

These values now participate in the theme spacing scale, matching the convention used by all other lab and core components. No visual change at default theme values (2px and 4px are the resolved defaults for those tokens).

Testing: pnpm build clean, all 19 Stepper tests pass.

Night Watch -- Component Auditor

Stepper.tsx used a raw '2px' gap value and Step.tsx used a raw '4px' bar width.
Replace with spacingVars['--spacing-0-5'] and spacingVars['--spacing-1']
respectively so the values participate in theme spacing scales.
@cixzhang
cixzhang requested a review from imdreamrunner as a code owner July 22, 2026 10:27
@cixzhang cixzhang added the hardening Component hardening and quality sweep label Jul 22, 2026
@cixzhang
cixzhang requested a review from ejhammond as a code owner July 22, 2026 10:27
@cixzhang cixzhang added the hardening Component hardening and quality sweep label Jul 22, 2026
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 22, 2026
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview, Comment Jul 22, 2026 10:29am

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.7KB 0B

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

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. hardening Component hardening and quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant