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

[Updated] Tooltip activation toggle #2

Closed
Evanion opened this issue Jul 22, 2013 · 3 comments
Closed

[Updated] Tooltip activation toggle #2

Evanion opened this issue Jul 22, 2013 · 3 comments

Comments

@Evanion
Copy link

Evanion commented Jul 22, 2013

The tooltip should have an activation toggle to activate on hover or active, just like the pos property.

Take for instance forms, where you might want to add a tooltip to explain what the user should input. triggering the tooltip on ':active' would activate the tooltip for the correct field as the user tabs through the form, and it won't require the user to keep the mouse pointer over the field at all times.

Please see comment below

@Evanion
Copy link
Author

Evanion commented Jul 22, 2013

Wow, that was quick.
Now is a good usability fix.

But if you accidently move your mouse over another element with a tooltip, it will still blur the tooltip on the active element. I thought of it like a attribute property like the position property:

data-uk-tooltip="{pos:'right'}"

could be:

data-uk-tooltip="{pos:'right', mode:'click'}"

That would replace the default behaviour of hover, and only activating the tooltip on click/tab, making it work more like the onClick event in the Dropdown component.
Though the dropdown component requires you to hit space to extend the dropdown when tabbed in, that won't really be good usability in the case of a tooltip since that would put a space in input elements like type="text".

In the absence of the "mode:'click'" it would behave as it does now.

@aheinze
Copy link
Member

aheinze commented Jul 23, 2013

I think the actual implementation is the way a tooltip has to behave ... on click modes are something for popovers.

@Evanion
Copy link
Author

Evanion commented Jul 24, 2013

your right of course ... well I gues I'll just have to wait for that part of the framework then ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants