Government of Spain Logo DINTEL Design System Logo Standardized Design of Electronic Procedures Home First steps First steps What is DINTEL? Designers Developers Resources Frequently Asked Questions Foundations Foundations Color Typography Box shadow Spacing Grid Border Border radius Iconography Illustrations Animations Accessibility Design tokens Writing guidelines Data visualization Interface elements Interface elements Modules Templates Components Updates Contact
Interface elements Components Tooltip

Tooltip

The tooltip displays additional information on hover or click. The information included should be explanatory, useful and non-essential.

Preview

Preview of the tooltip component

Uses

How to use

When you want to provide additional information or context about a user interface element without interrupting the user's task. To provide a brief description or explanation of a user interface element, such as an icon or button, or to display a brief description of a menu option or setting.

How not to use

Avoid using the tooltip component in an excessive or obtrusive way, as this can be frustrating for the user and can interrupt the task at hand.

Behaviour

Type

Display of a descriptive tooltip

Description only

Location

Display of the tooltip component positioned at the top

Top

Display of the tooltip component positioned at top left

Top left

Display of the tooltip component positioned at top right

Top right

Display of the tooltip component with bottom position

Bottom

Display of the tooltip component with bottom and left position

Bottom left

Display of the tooltip component with bottom and right position

Bottom right

Display of the tooltip component with right position

Right

Display of the tooltip component with left position

Left

Accessibility

This component has been validated to comply with the accessibility requirements of UNE-EN 301549:2022 which encompasses the criteria of WCAG 2.1 (AA), however, changes to content and styles may affect accessibility compliance. Be sure to review and follow the guidelines in this section when updating or adding new content or styling to this component.

The container element defaults to role="button" but can be edited by the developer. the tooltip element has aria-describedby linked via an id to the popover popup element. Popover popover element has role="tooltip".

This website uses own and third party cookies to provide a better service. If you continue browsing we consider that you accept its use.

NextGenerationEU European Union Funding Logo Transformation and Resiliency Recovery Plan Logo Spain digital logo Legal notice Accessibility Cookies policy Contact Sitemap