A small text bubble that explains a control on hover, focus or long-press. Learn why touch screens have no hover, the WCAG rules for content on hover or focus, edge collisions, and why an icon button still needs its own name.
40–60 min Feedback & overlays iOS · Android · Web Also called: Popover hint, Info tip, Coachmark (related)
Your progress
You’re sending rent from your banking app on your phone. Next to IBAN there’s a little ⓘ. You tap it. Nothing. You tap it again, harder. Still nothing. On the laptop the same ⓘ shows a helpful bubble, but only when the mouse is over it. The developer tested with a mouse, and never noticed that phones don’t have one.
Tooltips look like the most harmless component on the page: a few words in a dark bubble. But they depend on how the user points at things (mouse, finger, keyboard, screen reader), they float over other content, and they love to hide behind screen edges. That makes them a great place to find bugs.
Part Not started
What is a tooltip?
A tooltip is a small, temporary bubble of plain text that describes the element it’s attached to. It appears when the user hovers over the element with a mouse, moves keyboard focus to it, or (on touch screens) long-presses it. It disappears when they move away.
You’ll usually see tooltips used to:
Name icon-only buttons: Archive, Share, Add to wishlist.
Show keyboard shortcuts: Bold (Ctrl+B).
Add a short hint next to a form label: “Shown on the recipient’s statement”.
Show the full text of something that is cut off, like a long file name.
Anatomy
Archive (E)
12345
A web tooltip on a focused icon button
1
Trigger
The element the tooltip explains, often an icon button. It must be focusable and have its own accessible name.
2
Container
A small bubble, usually dark with light text. It floats above the page and never pushes content around.
3
Text
A short, plain-text hint: a few words, no links, no buttons. If it needs more, it is a popover.
4
Arrow (caret)
Optional. Points at the trigger, so it stays clear what the hint belongs to, even after shifting at screen edges.
5
Offset
The small gap to the trigger. The pointer must be able to cross it without the tooltip disappearing.
Tooltip, toggletip, toast or inline help?
Several components show “a bit of extra text”. Picking the wrong one is one of the most common tooltip problems.
Opens on click or tap, stays until closed, and may hold a link. Strictly speaking it is a small popover, not a tooltip.
Click / taparia-expandedEsc returns focus
Notes
Start a new note
Tap here to write something new. Your notes sync across devices.
Tip / coachmark
iOS
Onboarding tips (like Apple's TipKit popover tips) point at a feature once. They need a clear close button and must not come back after dismissal.
OnboardingClose buttonShow once
Hover, focus, long-press: touch screens have no hover
A tooltip has to work for every way people point at things. This is where most tooltip bugs come from.
Input
How the tooltip should open
How it should close
Mouse / trackpad
Hover, after a short delay
Pointer leaves (trigger and tooltip), or Esc
Keyboard
Tab focus, immediately
Focus moves on, or Esc
Touch (Android)
Long-press the icon button
Shortly after the finger lifts
Touch (iPhone, web)
Usually not at all, so don’t hide anything important in it
n/a
Screen reader
Never “opens”; the text is read as the name or description
n/a
The key lesson: on a phone, a hover-only tooltip doesn’t exist. A tap is not a hover. If the information matters on mobile, it must be visible, or opened with a tap as a toggletip.
Delay and dismissal: WCAG 1.4.13
Mouse tooltips usually wait a few hundred milliseconds before appearing, so they don’t flash while the pointer crosses the page. Keyboard focus should show them right away.
Dismissible. The user can hide it without moving the pointer or focus, usually with Esc. A tooltip that covers the next field must not force the user to move away.
Hoverable. The user can move the pointer onto the tooltip without it disappearing. People who use screen magnifiers need this to read it.
Persistent. It stays until the user moves away, dismisses it, or it’s no longer relevant. No timer that hides it after two seconds while the pointer is still there.
Positioning and screen edges
A tooltip normally appears above (or below) its trigger, centered. Near an edge there is no room, so a good tooltip:
Shifts sideways to stay fully on screen, while its arrow keeps pointing at the trigger.
Flips to the other side when there’s no room above (for example, under a toolbar at the top of the page).
A tooltip disappears when the pointer or focus leaves the trigger, so anything interactive inside it is a trap: a mouse user has to “chase” the link, a keyboard user can’t Tab into it, and a touch user never sees it. If the bubble needs a link or a button, it should be a toggletip or popover that opens on click and stays open.
aria-label="Delete" on the web, accessibilityLabel on iOS, contentDescription on Android.
Onboarding coachmarks
Coachmarks (or “tips”) point at a feature the first time a user sees a screen: “Tap here to start a new note”. They’re related to tooltips, but appear without hovering. Test that they:
Have a clear close button (with a name) and close with Back / Esc.
Don’t come back after being dismissed, after a restart or an update (unless that’s the plan).
Point at the right thing, on every screen size and in landscape.
Don’t block the very button they’re pointing at, and don’t stack three on top of each other.
Check this part
The ⓘ next to "IBAN" works with a mouse on desktop. What is the most important thing to test next?
Touch screens have no hover, and keyboard users never hover. A hover-only tooltip doesn't exist on a phone.
A tooltip disappears as soon as you move the mouse towards it. Which WCAG 1.4.13 requirement fails?
Hoverable means the pointer can move onto the tooltip without it disappearing, so screen magnifier users can read it.
Hover, focus and long-press: touch screens have no hover, WCAG 1.4.13 sets the rules for dismissal, tooltips must stay on screen, and icon buttons still need a name.
Part Not started
When to use it
Tooltips are a good choice when:
You need to name an icon-only button for mouse and keyboard users (and the button already has an accessible name).
The hint is nice to know, not need to know: the user can succeed without ever seeing it.
The text is short: a few words, one short sentence at most.
The product is used with a mouse or keyboard (desktop web, tablets with a pointer), or on Android, where long-press shows it.
Good and bad uses
Rules visible under the field
New password
••••••
At least 8 characters, including a number.
Users read the rules before they type, on every device.
Rules hidden in a tooltip
New password
••••••
Password doesn’t meet the requirements.
On a phone the ⓘ does nothing, so users only learn the rules from the error. Need-to-know information belongs on the page.
A few words of plain text
Delete address
Lindenstraße 12, Berlin
Names an icon. Nothing to click inside.
Links and buttons in a tooltip
Points expire
Points expire 12 months after you earn them, unless you shop again.
Learn moreGot it
1,250 points
“Learn more” and “Got it” are hard or impossible to reach. Use a toggletip or popover that opens on click and stays open.
Check this part
Which of these belongs in a tooltip?
Short, plain, nice-to-know text. Rules must be visible; links and buttons belong in a toggletip or popover.
Which two questions should you ask about every tooltip?
If the user never sees the tooltip on a phone or with the keyboard, and the text is important, that's a bug or design finding.
Use tooltips for short, nice-to-know hints like naming icon buttons; rules and anything need-to-know must be visible.
A “Learn more” link that can’t be clicked or reached
Medium
6
Icon button with no name
Screen reader says just “button”
High (for affected users)
7
Sticky tooltip
Stays on screen after scrolling, closing a dialog or tapping elsewhere
Low–Medium
8
Flicker
Tooltips flash on and off while the mouse crosses a toolbar
Low
9
Wrong or stale text
“Mark as read” on a message that’s already read
Medium
10
Coachmark returns
A dismissed onboarding tip shows up again after every restart
Low–Medium
Stress-test it
This mail app toolbar has correct tooltips. Use the settings to break them on purpose and watch the WCAG check. Try it with the mouse, then only with the keyboard, then on your phone.
Archive (E)Delete (#)Mark as unread (U)Mute this conversation. New replies skip your inbox.Snooze until tomorrow, 8:00
Your order has shipped
Nordic Home <orders@nordic.example> · 09:14
Hi Anna, good news: order #4821 is on its way. Track it with DHL using the code JJD0099 1234 5678.
Mouse: hover · Keyboard: Tab, then Esc · Touch: press and hold
WCAG 1.4.13 check
Dismissible.Esc hides it without moving the pointer or focus.
Hoverable.You can move the pointer onto it (e.g. to zoom in on it).
Persistent.Stays until the pointer leaves, focus moves or Esc. No timer.
Screen reader would say
Tab to a toolbar button to hear it…
Event log
Hover, Tab or long-press a button.
Things to try: turn Edge handling off and hover Archive and Snooze at the edges. Turn Hoverable off and try to move the pointer onto the long Mute tooltip. Set the delay to 0 and sweep the mouse across the toolbar: tooltips flash on and off. Tab to a button: keyboard focus never waits for the delay.
Find the bug
This “Send money” page in a web bank has six tooltip bugs. Explore it like a tester:
Use the mouse on every icon: hover, then try to move onto the bubble.
Then use only the keyboard: Tab through the page and press Esc when something covers the form.
Open the ? next to Instant transfer and try its link.
Read the screen reader panel for every button.
If you can, open this page on a phone and tap the info icons.
🐞 Bug hunt: Send money
This demo has 6 hidden bugs. Explore it like a tester, then check your findings.
Found0/6
bank.example.com/transfer
Send money
FromMain account€1,240.50
Shown on the recipient’s statement, max. 140 characters. Allowed: letters, numbers and / - ? : ( ) . , ’ +. Don’t enter passwords or card numbers.
Instant transfer
Fee€0.00Standard SEPA transfers are free, without limit. Instant transfers cost €0.50 each.
Tester tools
Screen reader would say
Tab through the page to hear each control…
Test with the mouse, then only the keyboard (Tab, Esc). On a phone, tap the info icons.
1
Hint: Tab to the ⓘ next to IBAN, or tap it on a phone.
The IBAN tooltip only works with a mouse
The tooltip is opened only by pointerenter with a mouse. Keyboard focus and taps do nothing, and the text is not linked to the button, so screen readers don’t hear it either. Expected: it opens on hover and focus, and the important format hint is also visible as inline help for touch users.
2
Hint: Hover the ⓘ next to the fee at the right.
The fee tooltip is cut off at the right edge
The bubble starts at the icon’s left edge and grows to the right, with no collision handling, so the page clips it mid-sentence. Expected: the tooltip shifts or flips to stay fully visible, with the arrow still pointing at the icon.
3
Hint: Hover the ⓘ next to Reference and move the mouse up onto the bubble.
The reference tooltip disappears when you move onto it
It hides the moment the pointer leaves the icon, and there is a 12 px gap to cross. Users with screen magnifiers can’t read it. This fails WCAG 1.4.13 hoverable. Expected: the pointer can move onto the tooltip and it stays open.
4
Hint: Click into Amount, then press Esc. Then try to click the Reference field.
The amount hint can’t be dismissed and covers the next field
The hint stays open while Amount has focus and covers the Reference field. Esc does nothing, and the first click on the covered field only closes the hint. This fails WCAG 1.4.13 dismissible. Expected: Esc hides it, and it doesn’t cover inputs the user needs next (or it is shown as inline help).
5
Hint: Open the ? next to Instant transfer and click the link. Then try to reach it with Tab.
The “See all fees” link can’t be used
The “click outside closes” code only ignores the ? button, so pressing the link counts as an outside click and closes the bubble before the link activates. The link also has tabindex="-1", so keyboard users can’t reach it. Expected: links belong in a toggletip or popover that stays open, accepts clicks and is reachable with Tab.
6
Hint: Tab to the QR icon at the top and read the screen reader panel.
The QR button has no accessible name
The tooltip shows “Scan QR code”, but the button has no aria-label and the tooltip isn’t linked to it, so a screen reader announces only “button”. Expected: the button has its own name (“Scan QR code”), and the tooltip just shows it visually.
Check this part
Why is the browser's built-in tooltip a poor choice?
Many hover-only bugs come from the built-in tooltip or mouse-only code. Test with Tab and on a phone before you pass the test.
The tooltip on Mute adds extra information to the button's name. How should a screen reader read it?
A tooltip that adds information is linked as a description and read after the name: "Mute, button, Mute this conversation…".
Hover-only tooltips, clipping at edges, tooltips you can't hover or dismiss, interactive content, nameless icon buttons and coachmarks that come back.
Part Not started
How to test it
Start without any tools. Find a screen that uses this component and use it the way a real user would: slowly, then fast, then in ways nobody planned for. Tick off the checklist as you go. Most of it needs only your eyes and your fingers.
Then try the example test cases. Some of them need a little setup:
A screen reader: VoiceOver on iPhone, TalkBack on Android. Both are in the phone’s Accessibility settings. See Mobile accessibility.
A keyboard: on the web, put the mouse away and use Tab, Enter, Space, Esc and the arrow keys.
New to this? Do the checklist first and skip any test case whose setup you don’t know yet. The Tools list after the test cases shows how to do the trickier steps.
Checklist
Tooltip test checklist
0 of 13 checked
Example test cases
TC-TIP-001Tooltip opens on keyboard focuspositivehigh
Steps
Open the Send money page
Press Tab until the ⓘ next to "IBAN" has focus
Expected result
The IBAN tooltip appears immediately next to the icon, and the focus ring is visible.
TC-TIP-002Esc dismisses a tooltippositivemedium
Steps
Hover the ⓘ next to "Fee" until the tooltip appears
Without moving the mouse, press Esc
Expected result
The tooltip disappears. The pointer and focus stay where they were. It does not reappear until the pointer leaves and comes back.
TC-TIP-003Tooltip is hoverablepositivemedium
Steps
Hover the ⓘ next to "Reference"
Move the pointer slowly onto the tooltip text
Wait 10 seconds
Expected result
The tooltip stays visible the whole time, and hides only after the pointer leaves both the icon and the tooltip.
TC-TIP-004Tooltip near the right edge stays on screenedgemedium
DevTools › Elements: right-click › Force state › :hover or :focus keeps CSS tooltips open while you inspect them. For JavaScript tooltips, use Emulate a focused page (Rendering panel) so they don’t close when you click into DevTools.
Accessibility pane: shows each button’s computed Name and Description. An empty name on an icon button is bug #6.
How can you keep a CSS tooltip open while you inspect it in DevTools?
Right-click the element › Force state. For JavaScript tooltips, use Emulate a focused page.
DevTools' Accessibility pane shows an icon button with an empty Name. What does that mean?
An icon button needs an accessible name of its own. The tooltip is only the visual version of it.
A checklist, example test cases and tools for hover, focus, touch, edges, dismissal and accessible names.
Part Not started
Accessibility
Name first. Every icon-only button needs an accessible name.
Dev note
On the web that’s aria-label (or a tooltip linked with aria-labelledby). On iOS it’s accessibilityLabel; on Android, contentDescription. For Android toolbar menu items, the item’s title usually serves as both the spoken name and the long-press tooltip.
Link extra text as a description. A screen reader reads a tooltip that adds information after the name.
Dev note
The tooltip gets role="tooltip" and is referenced with aria-describedby from the trigger.
Never rely on the browser’s built-in tooltip. It doesn’t show on keyboard focus or touch, can’t be styled, and screen readers handle it inconsistently.
Dev note
iPhone apps rarely use tooltips: there’s no hover, and Apple’s guidelines prefer clear labels and standard icons. Icon buttons still need a label for VoiceOver.
Dev note
That’s accessibilityLabel.
On the Mac (including Mac Catalyst apps), apps can show a hover tooltip; on iPad with a trackpad or mouse, check what the app’s iPadOS version actually shows.
Dev note
SwiftUI’s .help("…") shows the hover tooltip.
For feature hints, apps use TipKit (iOS 17+): popover tips and inline tips. Test that they close, stay closed, and don’t cover what they point at.
Larger hints usually live in a popover or a bottom sheet.
Android has built-in tooltips. They appear on long-press and on mouse hover.
Dev note
android:tooltipText, TooltipCompat; TooltipBox with PlainTooltip / RichTooltip in Compose.
Action bar / toolbar icons show their title as a tooltip on long-press. Check that the long-press doesn’t also trigger the action.
Material 3 rich tooltips can include a title and an action; persistent ones stay open until dismissed. Test them like popovers.
Test with TalkBack: icon buttons must have a description.
Dev note
That’s contentDescription.
Test hover, focus and touch. Use real phones; mobile browsers have no hover, and taps can “stick” a hover state.
Check edges, scrolling containers and zoom: the tooltip must stay visible and move with its trigger.
Inspect the markup: the tooltip is linked to its trigger, has no interactive content and doesn’t rely on the built-in browser tooltip.
Dev note
role="tooltip", aria-describedby or aria-labelledby, no title.
Dev note
Newer HTML features like the Popover API (popover attribute) help build toggletips and popovers that open on click and close with Esc.
Check this part
An icon button shows the tooltip "Delete", but VoiceOver says only "button". What is missing?
A visual tooltip isn't the button's name unless the code links them. The button needs its own accessible name.
How do Android apps usually show the tooltip of a toolbar icon button?
Android shows tooltips on long-press (and on mouse hover). Check that the long-press doesn't also trigger the action.
A name first, extra text as a description, no built-in browser tooltip, keyboard and WCAG 1.4.13; then iOS, Android long-press and web tooltips.
Key takeaways
A tooltip is a short, plain-text hint that appears on hover, keyboard focus or long-press. Links and buttons belong in a toggletip or popover.
Touch screens have no hover. Never hide need-to-know information in a hover-only tooltip.
WCAG 1.4.13: tooltips must be dismissible (Esc), hoverable and persistent.
Test the edges: tooltips must shift or flip, never get clipped.
Every icon button needs its own accessible name. The tooltip is just the visible version of it.
Finished this page?Nice work, this page is complete!
Mark it as done to track your progress. It's saved in this browser, no account needed.