Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Option to specify list of marks #17784

Open
1 task done
parejko opened this issue Oct 17, 2024 · 2 comments
Open
1 task done

[Feature Request]: Option to specify list of marks #17784

parejko opened this issue Oct 17, 2024 · 2 comments

Comments

@parejko
Copy link

parejko commented Oct 17, 2024

The problem

Currently we can only set the increment like 0, 5, 10, 15, 20, 25, 30.

We have use case where we need to set up 1, 5, 10, 15, 20, 30
So from current implementation we want to start with 1 instead of 0, and omit the 25 value.
Also we need the "marks" to give the user information which values are allowed

Expected slider option below
Image

The solution

Option to specify the list of possible values with labels which will be used to display marks
Solution has to support keyboard navigation

Examples

No response

Application/PAL

Instana

Business priority

None

Available extra resources

No response

Code of Conduct

Copy link
Contributor

Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.

If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.

@aagonzales aagonzales moved this from Triage to Later 🧊 in Roadmap Nov 25, 2024
@aagonzales
Copy link
Member

Hi @parejko! The step prop already allows increments and you can customize javascript to remove steps. The min prop will allow you to set the start value to 1,

Enhancement opportunity
The increment visuals (tick marks + value) are not currently part of the component and would need to be added as an enhancement.

Maintainer note: There have been other issues related to this topic in the past, we should find those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Later 🧊
Development

No branches or pull requests

2 participants