jQuery UI Accessible Tooltips

Component ID

2359871

Component name

jQuery UI Accessible Tooltips

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module provides an easy way for developers to add accessible tooltips to a site, using jQuery UI Tooltip.

$tooltip_link = theme('tooltip_link', array(
  'link_text' => t('A tooltip will be displayed when hovering or focusing on this element'),
  'tip_text' => t('This text will appear in the tooltip'),
  'classes' => array(
    'my-class',
    'my-other-class',
  ),
));

The output of this will be:

<a class="my-class my-other-class tip-trigger" href="javascript:void(0)">
  A tooltip will be displayed when hovering or focusing on this element
  <span class="tip-text element-invisible">This text will appear in the tooltip</span>
</a>