Skip to content

feat(slider)!: support bidirectional fill#764

Draft
GursheenK wants to merge 5 commits into
mainfrom
slider-bidirectional-fill
Draft

feat(slider)!: support bidirectional fill#764
GursheenK wants to merge 5 commits into
mainfrom
slider-bidirectional-fill

Conversation

@GursheenK

@GursheenK GursheenK commented Jun 8, 2026

Copy link
Copy Markdown
Member

Bidirectional fill

When min is negative, the slider fill now originates from the zero rather than always from the left edge, making positive and negative values visually distinct. Added docs and test for the same.

Fix

SliderRoot was missing an explicit height, so the thumb (size-4 / size-5) overflowed the component's bounding box. Added h-4 for sm and h-5 for md to match the thumb dimensions so that we no longer need to compensate for the overflow in our own layouts.

Breaking change

Slider root element now has an explicit h-4 / h-5 Tailwind class. Previously the root had no height class and sized naturally to its content. Consumers who applied a custom height to the Slider container or overrode its height via CSS may see a layout shift.

Migration: if your Slider container has a fixed height smaller than h-4 (16px), increase it or remove the constraint.

Docs preview: https://ui.frappe.io/pr-preview/pr-764/

Coverage: 56.10% (+0.01% vs main)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant