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

Mobile alternative for tooltips #84

Open
rgilman opened this issue Nov 5, 2018 · 1 comment
Open

Mobile alternative for tooltips #84

rgilman opened this issue Nov 5, 2018 · 1 comment

Comments

@rgilman
Copy link
Member

rgilman commented Nov 5, 2018

The hover method for tooltips doesn't work on a touch device. I'm wondering what we might do instead.

One option would be to add a '?' icon at the start of the row that was activated by a touch and had a popup panel with help text about all the other icons.

Is there some way (perhaps via JS) that we could only show that '?' icon on touch devices?

Are there other alternatives worth exploring?

@iangilman
Copy link
Member

A common way to show things only on mobile would be to use JavaScript to detect touch and then add a class (e.g. is-touch) to the HTML element. Then you can use selectors like .is-touch .help-button to target that scenario.

I'll let you know if I think of an alternative besides a help button. Of course the user can also click on things and see what they do. We should make sure nothing dangerous can happen without warning with that kind of exploration.

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

2 participants