fix(Chat): add missing themeProps and fix className clobber - #4634
Open
cixzhang wants to merge 2 commits into
Open
fix(Chat): add missing themeProps and fix className clobber#4634cixzhang wants to merge 2 commits into
cixzhang wants to merge 2 commits into
Conversation
…utton ChatSendButton: the themeProps className was overwritten by a subsequent explicit className prop, losing the astryx-chat-send-button targeting class when consumers pass className. Use mergeProps to concatenate both. ChatDictationButton, ChatLayoutScrollButton: add themeProps calls so themes can target these components via their stable astryx-* class names.
cixzhang
requested review from
ejhammond,
imdreamrunner and
josephfarina
as code owners
August 1, 2026 10:41
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR Modified ComponentsChat (@astryxdesign/core) · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: 1 accessibility violation(s) found — 1 serious. Chat - 1 issue(s)
Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
imdreamrunner
approved these changes
Aug 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix theming class handling in three Chat sub-components:
ChatSendButton — the
themeProps('chat-send-button')className was overwritten by the explicitclassNameprop passed to Button. When a consumer providedclassName, theastryx-chat-send-buttontargeting class was lost. Now usesmergePropsto concatenate both classNames before passing to Button.ChatDictationButton, ChatLayoutScrollButton — these exported components lacked a
themePropscall entirely. Themes had no stable class to target them. AddedthemeProps('chat-dictation-button')andthemeProps('chat-layout-scroll-button')to their root elements using the existingmergePropspattern.Testing
pnpm buildpasses (0 errors)vitest run packages/core/src/Chat/)Night Watch — Component Auditor