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.











