Replies: 2 comments 9 replies
-
To have two overlaying sliders ( I like the names of material "mwc-slider" and "mwc-slider-range", but since we already have "input-range", we should think of a good name for the double handles component. On a technical note, i guess it should be a fieldset with two input fields. The public API would be something like: <lion-input-range-group
label="Amount"
name="amount"
min="0"
max="500"
.modelValue=${{low: "30", high: "100"}}
></lion-input-range-group> |
Beta Was this translation helpful? Give feedback.
-
@jdelight Note that:
I hope this can serve as a start :)
|
Beta Was this translation helpful? Give feedback.
-
How might we update Lion's input range component to add support for selecting a range as well as what it currently does (selecting a value within a given range). Similar to the examples here under "Ranged" https://material-components.github.io/material-web/demos/slider/
Essentially we need to allow users to select a min and max value within a single component (as opposed to having two single value sliders).
However, looking at the Material Design example above, it appears to effectively render two sliders, overlayed and with their min/max attributes dynamically defined. So the start range max is clamped to the end range current value, and the end range min is clamped to the start range current value.
Also appears there are some WAI ARIA guidelines and examples for this component too:
Beta Was this translation helpful? Give feedback.
All reactions