Skip to content

Conversation

@aritradhabal
Copy link
Contributor

@aritradhabal aritradhabal commented Nov 11, 2025

Fixes the calendar icon in st.dataframe's date picker not being visible properly in dark mode. Applies theme-based filter correction to the WebKit calendar indicator.


Contribution License Agreement

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

Describe your changes

Screenshot or video (only for visual changes)

Default.Behavior.mp4
Improved.mp4

GitHub Issue Link (if applicable)

Testing Plan

  • Explanation of why no additional tests are needed
  • Unit Tests (JS and/or Python)
  • E2E Tests
  • Any manual testing needed?

Contribution License Agreement

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


Note

Applies dark-theme conditional styling to WebKit calendar picker indicators in StyledDataFrameOverlay to make date/time icons visible.

  • Frontend/Styling:
    • frontend/lib/src/styled-components.ts:
      • Add conditional dark-theme styles in StyledDataFrameOverlay for input[type='date'| 'time'| 'datetime-local'] WebKit calendar picker indicator (filter: brightness(0) invert(1), opacity: 1).
      • Import and use hasLightBackgroundColor to gate the styling by theme.

Written by Cursor Bugbot for commit e9cf58b. This will update automatically on new commits. Configure here.

…t#12852)

Fixes the calendar icon in `st.dataframe`'s date picker not being visible properly in dark mode.
Applies theme-based filter correction to the WebKit calendar indicator.

- Related to streamlit#12852

- Verified on light and dark themes.
- Checked date/time/datetime-local inputs for better visibility in light and dark mode.

---

**Contribution License Agreement**

By submitting this pull request you agree that all contributions to this
project are made under the Apache 2.0 license.
@snyk-io
Copy link
Contributor

snyk-io bot commented Nov 11, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Licenses 0 0 0 0 0 issues
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copy link
Collaborator

@lukasmasuch lukasmasuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 Thanks for the contribution.

@lukasmasuch lukasmasuch changed the title [fix] st.dataframe date picker icon visibility in dark mode (#12852) [fix] st.dataframe date picker icon visibility in dark mode Nov 11, 2025
@lukasmasuch lukasmasuch added security-assessment-completed Security assessment has been completed for PR change:bugfix PR contains bug fix implementation impact:users PR changes affect end users labels Nov 11, 2025
@sfc-gh-lmasuch sfc-gh-lmasuch enabled auto-merge (squash) November 11, 2025 21:35
@sfc-gh-lmasuch sfc-gh-lmasuch merged commit b160f5c into streamlit:develop Nov 12, 2025
35 of 36 checks passed
@aritradhabal aritradhabal deleted the fix/st_dataframe_date_picker_icon_fix_in_dark_mode branch November 13, 2025 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:bugfix PR contains bug fix implementation impact:users PR changes affect end users security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In dark mode, datetime selector icon in st.data_editor is also dark

3 participants