Multiple Handles Range Slider #2252
Unanswered
hxltrhuxze
asked this question in
Ideas
Replies: 1 comment
-
Would be great to chat about this when you have some time. Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Maturing the Range Slider component
With the current work on our
v3
forms refresh, we've taken a deep dive into our form components, including reviewing how appropriate they are for the Royal Navy Design System.We're proposing removing the current Multiple handles Range Slider variation for v3. It was originally created to solve a specific need for an exemplar project, but through our analysis, it isn't versatile enough to justify having in our library.
Proposal
Instead, we're looking to introduce a new Multiple Handle Range Slider variation based on standard industry best practices. It is worth noting, these aren't the proposed visual design of our new range slider variation - they're purely for illustrating the behaviour of our proposal.
Behavioural differences
Whilst the main functionality of the current and proposed Multiple Handle Range Slider are similar, there's a subtle difference in behaviour that is worth highlighting.
When moving the current slider handles, the colour of the slider bar does not track with the handle. Not only can this be visually confusing (as it doesn't display the true range between handles), but its behaviour is also counter to how other range sliders in our design system work. The expected behaviour should be that the two handles define a single range, which is highlighted over the slider.
The colours in the current slider imply that the handles are positioned in relation to each other. Particularly, depending on the initial state of the component, you cannot tell the difference in behaviour between a range slider where the colours follow the handles, and where they don't.
Taken from the w3c Design Patterns page:
In the current variation, there is an established relationship between the values of the handles - you can't reorder the handles inside the slider. Visually however, these values are 0-indexed, meaning the values on the slider are set independently from one another. This straddles two patterns in a confusing manner, and is something we'd like to rectify with this project.
In addition to this, using colour to define thresholds causes issues with A11Y guidelines, as it is currently the only indicator for each respective threshold.
Upgrading
The last thing we want to do is make upgrading to
v3
of the Royal Navy Design System an unattractive prospect. To combat this, we have suggestions to help individual teams migrate to the new major:We will give plenty of warning to teams as to when
v3
is due to be released.As ever, comments, thoughts, and perspective is appreciated here. We want to make sure we continue to evolve the Royal Navy Design System into an indispensable tool that teams can rely on to build their applications. We do this by ensuring the components and variations we provide are versatile enough to be used in as many scenarios as possible. We are a small team, so it is important for us to focus on building components that serve the most amount of teams as possible.
This unfortunately does mean we have to make difficult decisions, such as the one proposed here. However, we believe this proposal is in the best interest of both ourselves and the teams that rely on us.
- Royal Navy Design System team
Beta Was this translation helpful? Give feedback.
All reactions