-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Move zoom slider to toolbar #22569
Comments
@diegohaz You've been working on toolbars recently—do you have any insight on using a range slider in a toolbar? I haven't been able to find any accessibility notes on doing that, and the arrow key behavior between the two seems to be at odds with one another. I suppose you'd have to use the up and down arrows to move the slider since left and right are use for navigation among elements in the toolbar. I also see that Reakit doesn't have anything for range sliders right now. Is that something you think Reakit should have? Because I'd be willing to help get that going. |
Disabling horizontal arrow keys on the slider seems to be the least safe option here. It may be confusing, and we would have to test it with real users. I would like to see an app doing this, but I couldn't find any, even desktop apps. If this is as rare as it seems to be, it's a good signal to not do this. I can think of some other options we can explore:
This latter option sounds interesting, but by far the most complex, so I would rather try other options first. |
Thanks for the input @diegohaz! I can imagine the dropdown being the best choice then. |
Hi there! I prototyped an interaction for Zoom:
Not showing:
cc'ing @jasmussen for some Design thoughts! |
This is a really cool prototype, Q. Nice work! It seems like it has the same challenges with regards to being in the toolbar, as the slider, necessitating it to be an overlay and additional UI element. That isn't fundamentally bad. That's said, I have a personal preference for the slider, because it feels like it most fluidly maps to the smooth zooming you get when you scroll. I also still think the best experience is to have the slider in the toolbar, and that we should look into the solution Diego notes:
I've seen some separate divergent explorations putting input fields in the toolbar, and although these might not come to pass, as the toolbar grows to absorb additional functionality, we'll likely benefit from handling it anyway. In absence of, or until we're able to move the slider to the toolbar, it seems like the most direct path forward is to keep the slider as the separate element it is now, but tune and polish and refine it. |
I'm going to close the issue. It was resolved via #23677. |
Follow-up from #21024 (comment)
Having the zoom slider in the toolbar would consolidate all the controls to a single location, making them easier to find. We'll want to be careful with accessibility when implementing this.
If there isn't room for the slider in the toolbar, there are some other options for making the slider feel more contextual.
For small images, the slider can be moved below again as to not cover up too much of the image.
The text was updated successfully, but these errors were encountered: