Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jrieke
Copy link
Collaborator

@jrieke jrieke commented Jul 19, 2025

Describe your changes

Our sliders currently don't have standard widget height (40px), which creates problems with layout (e.g. when placing a slider and other widgets side by side). This PR makes the slider standard height and modernizes it a bit by removing the min/max value, adjusting the padding, and changing the font of the thumb to sans serif.

Before:
Screenshot 2025-07-19 at 16 34 43@2x
Screenshot 2025-07-19 at 16 35 14@2x

After:
Screenshot 2025-07-19 at 16 35 41@2x
Screenshot 2025-07-19 at 16 35 52@2x

GitHub Issue Link (if applicable)

Closes #5936

Testing Plan

Updated snapshots, which should cover all the visual changes here. Note that this updates a ton of snapshots since we use slider very often in our e2e tests.


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 Jul 19, 2025

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

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@github-actions
Copy link
Contributor

github-actions bot commented Jul 19, 2025

✅ PR preview is ready!

Name Link
📦 Wheel file https://core-previews.s3-us-west-2.amazonaws.com/pr-11986/streamlit-1.47.0-py3-none-any.whl
🕹️ Preview app pr-11986.streamlit.app (☁️ Deploy here if not accessible)

@jrieke jrieke added security-assessment-completed Security assessment has been completed for PR change:feature PR contains new feature or enhancement implementation impact:users PR changes affect end users labels Jul 19, 2025
@jrieke jrieke requested a review from Copilot July 20, 2025 16:15

This comment was marked as outdated.

@jrieke jrieke requested a review from Copilot July 20, 2025 16:15

This comment was marked as outdated.

@lukasmasuch lukasmasuch requested a review from Copilot July 23, 2025 16:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

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 👍

@jrieke jrieke enabled auto-merge (squash) July 23, 2025 21:09
@jrieke jrieke merged commit cbc750a into develop Jul 23, 2025
38 checks passed
@jrieke jrieke deleted the feature/slider-height branch July 23, 2025 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:feature PR contains new feature or enhancement 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.

Hide current/min/max values in st.slider

3 participants