Open gfellerph opened 7 months ago
It could be great to use <output>
element for displaying the value.
box-shadow
to imitate the left track side and style it differently (https://stackoverflow.com/questions/72837338/is-it-possible-to-style-input-type-range-with-just-a-left-and-right-color-and-no) in Chrome as well. Added ticket https://github.com/swisspost/design-system/issues/2765 for CSS implementation
Create a new slider component. Sliders allow users to quickly adjust content by dragging actions or using the keyboard to change a single numeric value or a range of values.
Design
https://www.figma.com/file/xZ0IW0MJO0vnFicmrHiKaY/Components-Post?type=design&node-id=18201-21381&mode=design&t=RSmJlLxtSlkSHV3R-0
Features
<datalist>
on MDN to see how that's done nativelyStructure (proposal)
Props
range
: Indicates if a range can be specified or not (two thumbs)value
: Current value, invalid if it is not representable with the current min/max/step settingsmin
: Minimum valuemax
: Maximum valuestep
: Granularity that value can have