<Slider track="inverted"> does not highlight the currently-selected mark #18929
Labels
bug 🐛
Something doesn't work
component: slider
This is the name of the generic UI component, not the React module!
good first issue
Great for first contributions. Enable to learn the contribution process.
Summary 💡
When using discrete marks with the forward slider, marks are highlighted if the slider is at or above their value.
When using discrete marks with the inverted slider, marks are highlighted if the slider is strictly above their value.
Examples 🌈
Using sliders from the slider docs.
A forward slider at exactly 37 degrees:
An inverted slider at exactly 37 degrees:
An inverted slider at maximum of 100 degrees has no highlights:
Motivation 🔦
In my case, I have a Low/Medium/High slider, and it's being used to set a minimum threshold for importance. The threshold is inclusive, but the visuals don't suggest that. It makes sense to be inclusive in this case, because it would not make sense for an exclusive slider to be on High as nothing would match that filter.
The text was updated successfully, but these errors were encountered: