-
Notifications
You must be signed in to change notification settings - Fork 4k
[fix] Improve st.chat_input file delete button colors
#13554
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. |
7495da7 to
dc0fc19
Compare
dc0fc19 to
64e3336
Compare
SummaryThis PR improves the visual appearance of the delete button (X button) on file chips in the chat input component by updating color values to match Figma designs. The changes include:
Code QualityThe code quality is excellent and follows Streamlit's frontend conventions:
Theme Color Choices:
Test CoverageUnit Tests (
E2E Tests (
Backwards CompatibilityThis change is fully backwards compatible:
Security & Risk
RecommendationsNo changes are required. The PR is well-implemented and follows all Streamlit coding conventions. Optional consideration (not blocking):
VerdictAPPROVED: This is a clean, well-implemented visual improvement that follows Streamlit's coding conventions, uses proper theme values, and has appropriate E2E snapshot coverage. The changes improve button visibility and accessibility without any breaking changes. This is an automated AI review. Please verify the feedback and use your judgment. |
st.chat_input file delete button colors
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 improves the visual styling of the delete button (X icon) on file chips in the chat input component to match Figma designs. The change updates the button colors for both normal and error states.
Changes:
- Updated delete button colors from
fadedText20/fadedText40tofadedText60/bodyTextfor normal state - Updated delete button colors to use
redTextColor/redColorfor error state - Added
isErrorprop to the delete button styled component to enable conditional styling - Updated E2E test snapshots across all browsers and themes to reflect the new visual appearance
Reviewed changes
Copilot reviewed 2 out of 50 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
frontend/lib/src/components/widgets/ChatInput/fileUpload/styled-components.ts |
Added isError prop and conditional color styling for delete button |
frontend/lib/src/components/widgets/ChatInput/fileUpload/ChatUploadedFile.tsx |
Passed isError prop to delete button component |
| E2E snapshot files (multiple) | Updated visual regression test snapshots for all browsers and themes |
| }) | ||
| ) | ||
|
|
||
| /* eslint-disable streamlit-custom/no-hardcoded-theme-values */ |
Copilot
AI
Jan 12, 2026
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.
Definition for rule 'streamlit-custom/no-hardcoded-theme-values' was not found.
Merge activity
|

Describe your changes
This PR make the X button colors adhere to the designs in Figma.
Screenshot or video (only for visual changes)
Updated snapshots for file chips in various states (archive, audio, code, pdf, spreadsheet, text, video, unknown) across different browsers (Chromium, Firefox, WebKit) and themes (light, dark).
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.