Skip to content

fix(core): forward rest props in ChatSendButton, use radius token in CheckboxInput#4258

Open
cixzhang wants to merge 1 commit into
mainfrom
fix/component-audit-2026-07-23-queue
Open

fix(core): forward rest props in ChatSendButton, use radius token in CheckboxInput#4258
cixzhang wants to merge 1 commit into
mainfrom
fix/component-audit-2026-07-23-queue

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

Summary

Two convention fixes found during component audit of Chat, CheckboxInput,
CheckboxList, Citation, and ClickableCard.

ChatSendButton (structure-issue): Extended BaseProps<HTMLButtonElement> but
destructured only named props without a rest capture. Pass-through attributes
(className, style, data-testid, event handlers, aria-*) were silently
dropped. Now captures ...rest and forwards it, along with className, style,
and data-testid, to the underlying Button.

CheckboxInput (hardcoded-value): The indeterminate mark bar used
borderRadius: 1 (hardcoded) instead of radiusVars['--radius-full']. Functionally
identical on the 2px-tall element but now uses the token for consistency.

Components Audited (clean)

  • Chat (all sub-components): clean across all checks
  • CheckboxList / CheckboxListItem: clean
  • Citation: clean
  • ClickableCard: clean

Night Watch -- Component Auditor

…CheckboxInput

ChatSendButton extended BaseProps but silently dropped className, style,
data-testid, and all pass-through attributes. Capture ...rest and forward
to the underlying Button.

CheckboxInput indeterminate mark used a hardcoded borderRadius: 1 instead
of the radius-full token.
@cixzhang cixzhang added the hardening Component hardening and quality sweep label Jul 23, 2026
@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
astryx Error Error Jul 23, 2026 10:49am

Request Review

@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Jul 23, 2026
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 23, 2026
github-actions Bot added a commit that referenced this pull request Jul 23, 2026
@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.

Modified Components

Chat · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 5243 -
Complexity N/A Very High (425) -
CheckboxInput · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 449 -
Complexity N/A Very High (45) -

Bundle Size Summary

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

Accessibility Audit

Status: 1 accessibility violation(s) found — 1 serious.

Chat - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/8 stories · Learn more
    • WCAG: 1.4.3 (Level AA)

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 needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant