Skip to main content

BETANow in public beta.Public betaBeta

日本語Español

TIP-003 Published · Updated

Help icon toggletip

A design that places a “?” button next to an input field’s label and shows a hint bubble only when it is pressed.

Wireframe (desktop) | Help icon toggletip

Help icon toggletip UI design (desktop wireframe)

Wireframe (mobile) | Help icon toggletip

Help icon toggletip UI design (mobile wireframe)

What changes on mobile

  1. All fields in one column: The expiry date and security code are stacked so each field is wider.
  2. The bubble shifts inside the screen: Even when the “?” is on the right side of the screen, the bubble shifts inward so it never goes off screen.
  3. It opens next to where it was pressed: It opens right below the “?”, so it is clear which field the hint is for.

Before you choose this pattern | Help icon toggletip

Good fit

  • Some input fields confuse only part of your users (a card security code, a membership number and so on)
  • You want to add a small diagram to the hint
  • You want to show hints the same way on mobile

Poor fit

  • A field that confuses almost everyone (writing the hint under the field from the start works better)
  • You want to show the name of an icon button (the icon label tooltip works better)
  • You want to point out input errors (the inline validation form works better)

Why this wireframe works | Help icon toggletip

It opens only when pressed

A hint that appears on hover cannot be seen on mobile or with the keyboard. The “?” is a button, and the bubble opens only when it is pressed.

Opening is announced to screen readers too

If the bubble only appears visually, screen reader users feel that nothing happened. The bubble is a role="status" area, filled when pressed so that it is announced.

The hint comes with a small drawing

Writing “the 3 digits on the back” is not enough for some people to find the number. A simple drawing of the back of a card shows where the number is.

It closes when something else is pressed, or with Esc

Making people look for a close button adds effort. Pressing anywhere else or the Esc key closes it.

Common mistakes when building it

The “?” is too small to press

A tiny symbol next to a label is hard to tap with a finger. Even if it looks small, make the pressable area at least 24px.

The button’s only name is “?”

A screen reader just says “question mark”, so people cannot tell what the hint is about. Give it a name such as “What is the security code?”.

Tucking explanations everyone needs into the bubble

If an explanation most people need is hidden, they fill in the field without opening it and make mistakes. Write explanations everyone needs under the field from the start.

The bubble stays open over the field

If it stays open and covers the field, people cannot type. Close it when the field is pressed, or show it where it does not hide the field.

Putting links or buttons inside a press-to-open note

If a press-to-open note contains links or buttons, build it as a popover or dialog, not a tooltip. Define the open state, Esc and focus order. If it only explains, keep it as a non-interactive tooltip.

Frequently asked questions

What is the difference between a toggletip and a tooltip?

A tooltip appears on hover or keyboard focus, while a toggletip opens when pressed. Because a toggletip opens on press, it works the same way on mobile and with the keyboard.

Should I use a “?” icon or an “i” icon?

They mean almost the same thing, so either is fine. Use only one of them across the site, and let the button’s name say what the hint is about.

Can I put links inside the bubble?

Because it opens on press, it does not disappear when the pointer moves away, so a link can go inside. If the links or buttons inside grow, though, build it as a popover or dialog and decide how focus moves.

Related pages

Share this pattern

Send this page to your team or your design partner.

Was this pattern useful?

Written by

Yuta Okano

ENVY DESIGN Inc.

CEO / Director / Designer

14 years in the web industry. Has worked on more than 500 web projects, from corporate and recruiting sites to e-commerce. Focuses on information architecture, direction and design, from planning websites to improving them. In recent years he has focused on AIO (AI optimization) and GEO, helping sites get cited by generative AI search such as ChatGPT, Perplexity and Google AI Overviews.

Review and revision history

  1. Published AvatarYuta Okano Pattern published