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

Is it possible to increase the slider's focus? #2269

Closed
francoism90 opened this issue Feb 25, 2020 · 9 comments
Closed

Is it possible to increase the slider's focus? #2269

francoism90 opened this issue Feb 25, 2020 · 9 comments

Comments

@francoism90
Copy link
Contributor

Description

I really like the slider, but sometimes it's hard to actually click somewhere on the slider without using the thumb especially on small sizes:

image

Why Buefy need this feature

It would be great to allow a bit of threshold so a change can be triggered, even when the user isn't actually on the slider.

I'll try to take a look at the SCSS and make a PR if this isn't possible yet.

@yxngl
Copy link
Contributor

yxngl commented Feb 26, 2020

Do you want to increase the width of the track or just make clickable region wider?

@francoism90
Copy link
Contributor Author

@yxngl I would like to increase the last one, the clickable region.

@jtommy
Copy link
Member

jtommy commented Mar 2, 2020

@francoism90 Probably you're right.
@yxngl @francoism90 a PR is welcome 👍

@almeida-gustavo
Copy link
Contributor

Hey @francoism90 I would like to help you out.

@yxngl did you already start working on a PR for this?

@jtommy
Copy link
Member

jtommy commented Mar 3, 2020

@melogustavo make your PR :)

@yxngl
Copy link
Contributor

yxngl commented Mar 3, 2020

What are your thoughts and approaches to this? I didn't start. My initial idea is not to change HTML. For workaround in a single use case, increasing the height of the track and using color gradient to fake a thinner look of track and fill will do. But these are in SCSS, do you want an API for it?

@jtommy
Copy link
Member

jtommy commented Mar 3, 2020

@yxngl if we can manage it with a prop why not ?

@almeida-gustavo
Copy link
Contributor

Hey @francoism90, Just opened a PR :)

@francoism90
Copy link
Contributor Author

@melogustavo Thanks, great stuff!

@jtommy jtommy closed this as completed Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants