swisspost / design-system

The Swiss Post Design System pattern library for a consistent and accessible user experience across the web platform.
https://design-system.post.ch
Apache License 2.0
111 stars 14 forks source link

Component: Slider #2297

Open gfellerph opened 7 months ago

gfellerph commented 7 months ago

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

image

https://www.figma.com/file/xZ0IW0MJO0vnFicmrHiKaY/Components-Post?type=design&node-id=18201-21381&mode=design&t=RSmJlLxtSlkSHV3R-0

Features

Structure (proposal)

Props

<label for="slider">Slider</label>
<post-slider id="slider" range min="5" max="20" step="5" ></post-slider>
### Tasks
- [ ] Add a `post-slider` component
- [ ] Add a tab to the slider docs page, documenting the web component
- [ ] Write snapshot tests
- [ ] Review by UX
imagoiq commented 3 months ago

It could be great to use <output> element for displaying the value.

gfellerph commented 3 months ago