Version
has been released! Read the upgrade guide

Tooltip

The documentation on this page is considered legacy.

We will be updating this content to our new principle-based format in the near future.

The Tooltip displays extra information when hovered or tapped on.

Overview

The Tooltip is a small component that can display text information to the user, hidden under a tap or a hover.

1Usage

The tooltip should be used wherever including extra detail would be beneficial to the user. The Tooltip is hidden under an Information Icon and will only display itself when hovered or tapped (mobile) on.

2Anatomy

The Tooltip component has two main sections - the main navigational area at the top of the bar, and the fixed area at the bottom of the bar.

  1. Trigger. This is the element that is interacted with to display the Tooltip. In this instance, the trigger is placed on an Information Icon.

  2. Tooltip Item. The Tooltip Item floats above the Information Icon

  3. Tooltip Title (Optional). Add a Title to accompany the main Tooltip Body.

  4. Tooltip Message. The Tooltip Message contains the main content of the tooltip. This section is required, unlike the title.

3Sizing & Spacing

The Tooltip is only available in 1 size.

4States

The Tooltip has two states - Default and Hovered/Tapped (mobile). By default, the Tooltip Item is hidden. Hovering on the Information Icon will fade the Tooltip in to show the text info.

5Hierarchy & Placement

There is no hard limit to the number of Tooltips that can be added to a page, however, try to use them sparingly.

6Variations

The Tooltip comes in two variations - with and without the Tooltip Title. You can also set the direction of the tooltip to be either the Top, Right, Left, or Bottom.

The MOD.UK Design System provides guidance and tools for building high–quality Services within the UK Ministry of Defence. This project is open source and its source code is available on GitHub.

All content is available under the Apache 2.0 licence, except where otherwise stated.

© Crown copyright