Skip to content

fix(chat): forward rest props and style escape hatches in ChatSendButton#4190

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

fix(chat): forward rest props and style escape hatches in ChatSendButton#4190
cixzhang wants to merge 1 commit into
mainfrom
fix/component-audit-queue-2026-07-22

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

ChatSendButton extends BaseProps but was not capturing or forwarding the rest spread, className, or style props. This meant data-testid, aria-*, id, and other pass-through attributes were silently dropped.

Fix: destructure className, style, and ...rest from props; forward them to the inner Button component. rest is spread before themeProps so the component's own contract props (variant, size, etc.) take precedence, while className and style are forwarded explicitly.

Testing: pnpm build clean, all 146 Chat tests pass.

Night Watch -- Component Auditor

@cixzhang cixzhang added the hardening Component hardening and quality sweep 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:30am

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 22, 2026
github-actions Bot added a commit that referenced this pull request Jul 22, 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 5239 -
Complexity N/A Very High (425) -

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant