-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Comments
Wow, that was quick. 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. In the absence of the "mode:'click'" it would behave as it does now. |
I think the actual implementation is the way a tooltip has to behave ... on click modes are something for popovers. |
your right of course ... well I gues I'll just have to wait for that part of the framework then ;) |
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
The text was updated successfully, but these errors were encountered: