-
Notifications
You must be signed in to change notification settings - Fork 4k
[fix] Update ghost button colors for st.chat_input buttons
#13535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
✅ PR preview is ready!
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
📉 Frontend coverage change detectedThe frontend unit test (vitest) coverage has decreased by 0.0000%
✅ Coverage change is within normal range. |
65f67cf to
7d9c0bd
Compare
76ca246 to
c85e841
Compare
7d9c0bd to
0462d95
Compare
c85e841 to
74e44bd
Compare
0462d95 to
f3d251e
Compare
74e44bd to
cbafd5a
Compare
f3d251e to
836e83b
Compare
cbafd5a to
247b832
Compare
836e83b to
2a58dcf
Compare
247b832 to
76ffa70
Compare
2a58dcf to
3e179cc
Compare
76ffa70 to
7648bfc
Compare
3e179cc to
1f97bec
Compare
7648bfc to
a6c02fc
Compare
1f97bec to
30542a4
Compare
a6c02fc to
8746ed6
Compare
30542a4 to
c499bc6
Compare
8746ed6 to
4b244a8
Compare
c499bc6 to
adb9c8f
Compare
4b244a8 to
7e513dc
Compare
adb9c8f to
08b362e
Compare
7e513dc to
c672a13
Compare
08b362e to
558aa1f
Compare
558aa1f to
50aeedc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR updates the chat input send button colors to improve theme consistency by replacing hardcoded conditional color logic with semantic theme variables.
Changes:
- Replaced light/dark theme conditional color logic with theme-agnostic
fadedText40andfadedText60variables - Updated hover state to use
bodyTextinstead ofprimarycolor for better visual hierarchy - Added active state styling with
primarycolor - Removed background color change on focus-visible state
- Updated E2E snapshot tests to reflect the new button appearance
Reviewed changes
Copilot reviewed 1 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/lib/src/components/widgets/ChatInput/styled-components.ts | Simplified send button color logic by removing hasLightBackgroundColor dependency and using semantic theme colors (fadedText40, fadedText60, bodyText, primary) |
| e2e_playwright/snapshots/linux/st_chat_input_test/st_chat_input-column_audio_with_files[light_theme-firefox].png | Updated snapshot for light theme Firefox to reflect new button colors |
| e2e_playwright/snapshots/linux/st_chat_input_test/st_chat_input-column_audio_with_files[dark_theme-webkit].png | Updated snapshot for dark theme WebKit to reflect new button colors |
| e2e_playwright/snapshots/linux/st_chat_input_test/st_chat_input-column_audio_with_files[dark_theme-firefox].png | Updated snapshot for dark theme Firefox to reflect new button colors |
| e2e_playwright/snapshots/linux/st_chat_input_test/st_chat_input-column_audio_with_files[dark_theme-chromium].png | Updated snapshot for dark theme Chromium to reflect new button colors |
SummaryThis PR updates the chat input send button (ghost button) colors to use theme-consistent semantic colors instead of hardcoded gray values that required light/dark theme detection. The changes:
Code QualityPositive changes:
Minor observations:
Test CoverageE2E Snapshot Tests:
Observations:
Backwards CompatibilityLow Risk:
Visual Change:
Security & RiskNo security concerns identified:
Low regression risk:
RecommendationsNo blocking issues identified. Minor suggestions:
VerdictAPPROVED: The PR successfully improves theme consistency by replacing hardcoded gray color logic with semantic theme colors. The changes are well-scoped, follow existing patterns in the codebase, and the visual changes are covered by updated E2E snapshot tests. The removal of This is an automated AI review. Please verify the feedback and use your judgment. |
st.chat_input buttons
Updated ghost button (+ and mic) colors: - Default: fadedText60 (was gray60/gray80) - Hover: bodyText (was primary) - Active/Selected: primary - Disabled: fadedText40 (was gray60)
frontend/lib/src/components/widgets/ChatInput/styled-components.ts
Outdated
Show resolved
Hide resolved
lukasmasuch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
28465f2 to
b1326d6
Compare

Describe your changes
Updated the chat input button colors to use.
cleanIconColor/dirtyIconColortofadedText40/fadedText60bodyTextandprimarycolorsScreenshot or video (only for visual changes)
The PR updates several snapshot test images for the chat input component in different themes and browsers.
Here's request from design:

Testing Plan
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.