Tooltip


type: widget

release: 1.9

status: released

documentation: http://api.jqueryui.com/tooltip/

demo: http://jqueryui.com/tooltip/

 

 


 

1 - Description:

 

A tooltip is a small overlay that sits over the main page that can be used to provide content or functionality that does not need to be always visible. Tooltips usually look like a small box or callout and can be trigged by a wide range of events. All tooltips should employ collision detection via the the Position utility.

 


 

2 - Visual Design:

 

 


 

 

3 - Functional Specifications/Requirements:

 

The tooltip widget can be applied to any element. The tooltip supports direct use on an element and delegation; the default options are set to work in both cases.

 

Focus takes precedence over hovering to determine the status of the tooltip. Focusing an element, then hovering over and out will result in the tooltip staying open. However, hovering over an element, then focusing and blurring, will result in the tooltip closing. The rationale for this is that if the user manually changes focus, then their mental focus has shifted, but if the user has just moved the mouse, it could be accidental or they could just be moving it out of the way.

 

Native tooltips are always suppressed, even if the tooltip widget is disabled. To fall back to native tooltips, the tooltip widget should be destroyed instead of disabled.

 

Keyboard

 

Accessibility

 


 

4 - Markup & Style:

 

(only used prior to implementation)

 


 

5 - Latest version of plugin:

 

http://view.jqueryui.com/master/demos/tooltip/default.html

 


 

6 - Open issues

 

Italics means we'll ignore those issues for a first release. We need more information, context, experience or usecases to properly solve them.

 

While sticky tooltips are still described, we currently don't plan to implement them, as their interaction is too close to a dialog while lacking the proper interactions, eg. ESC to close wouldn't make sense for a tooltip. We may get back to this eventually.

 

Connectors aren't implemented, yet. There are various approaches and none are really satisfying so far. Some resources:

 

How to handle tooltip width:

How existing plugins handle it: