TL;DR
A tooltip is a brief, non-interactive explanation associated with a control, usually shown on pointer hover or keyboard focus. Use it for supplementary context, not required instructions, errors, or links. Keep focus on the trigger, support Escape dismissal, let the pointer enter the bubble, and avoid a reading deadline. On touch screens, necessary help needs an intentional alternative rather than a hidden hover gesture.
A tooltip can explain a detail without adding permanent text to a busy interface. It should not be the place where the interface finally becomes understandable.
The U.S. Web Design System defines a tooltip as a short descriptive message appearing on hover or focus. Its guidance emphasizes strengthening an existing message rather than using the bubble for essential information.
We use a simple test: if someone never opens this tooltip, can they still understand the control and complete the task? If the answer is no, improve the visible interface first.
For Vue developers, that content decision comes before choosing a directive, wrapper, or floating-positioning mechanism. This guide explains the design contract, leaving installation and component APIs to the implementation reference.
Table of contents
- What makes a tooltip different from other help?
- Choose the message before the component
- Write tooltip content that answers one question
- Make hover and focus equally useful
- Give touch users an intentional alternative
- Connect the explanation to the actual control
- Treat placement and timing as part of readability
- Turn the design decision into a Vue component brief
- A concise tooltip review checklist
- Start with the information, then choose the primitive
- Sources
- Recommended Reads
What makes a tooltip different from other help?
A conventional tooltip describes something that already exists: an action, a term, or a compact control. It appears in relation to that element rather than asking the user to enter a separate help experience.
The WAI-ARIA tooltip pattern keeps keyboard focus on the triggering element. The tooltip itself does not receive focus. That distinction explains why a bubble containing a documentation link or settings switch needs a different interaction pattern.
Names alone are unreliable. A design file might call something a “rich tooltip,” while the actual component behaves like an interactive help panel. Decide by what users must do inside it, not by its shape, shadow, or filename.
A useful distinction is description versus destination. A tooltip supplies a description. If users need to move into the content to read extensively, follow a link, or change something, give them an appropriate destination instead.
Choose the message before the component
Start with the information you need to communicate, then choose its container. USWDS recommends tooltips for brief supplementary information and advises against essential information or task-critical actions inside them. See its tooltip usage guidance.
Here is how we would apply that principle in an application:
| Information | Better home | Example |
|---|---|---|
| A brief detail about an understandable action | Tooltip | “Fetch the latest results without changing your filters.” |
| A requirement needed before entering data | Visible field help | “Use the email address associated with your account.” |
| A validation failure | Persistent error message | “Enter a date after the project start date.” |
| Help containing a link or another control | Deliberately opened help panel | An explanation with a “Read import requirements” link |
| A longer explanation used during a task | Inline content or an expandable section | Several paragraphs explaining permission inheritance |

Consider a report builder with a refresh icon. A tooltip can explain that refreshing preserves the current filters. The action should still have an understandable name without that extra sentence.
Now consider a destructive “Clear report” action. A tooltip is not where we would hide the fact that saved configuration will be deleted. Put that consequence where the user makes the decision, with an appropriate confirmation when needed.
The same reasoning applies to unavailable actions. If users need to know why publishing is unavailable, show the reason near the action or relevant requirements. Do not make discovering a tiny hover target part of the recovery process.
Before adding a tooltip, also ask whether a clearer label would remove the need for one. “Archive project” often needs less explanation than “Process.” Hidden prose should not compensate for vague visible language.
Write tooltip content that answers one question
We recommend drafting the tooltip as an answer to a specific uncertainty: “What does this icon do?” or “What changes when I use this action?”
Avoid starting with the container: “We have room for a tooltip here.” That approach encourages filler rather than useful information.
Explain the missing detail
Our working example is a button with the accessible name “Refresh results.” Compare these proposed descriptions:
| Proposed content | Editorial assessment |
|---|---|
| “Refresh results” | Repeats the control name without adding context |
| “Click here to refresh the results shown on this page” | Describes the interaction rather than the useful consequence |
| “Fetch the latest results without changing your filters” | Explains the distinction the user may care about |
These are illustrative copy choices, not measured usability results. The best version depends on what your application actually does.
Use familiar nouns and specific verbs. Prefer “Export the visible rows” over “Perform an export operation.” If only filtered rows are exported, verify that behavior before promising it in the copy.
A tooltip should also avoid becoming a miniature manual. If the explanation needs an exception, a second exception, and a link to explain the first two, reconsider the container. Brevity should come from narrowing the message, not removing qualifications users need.
Separate labels, descriptions, and instructions
An icon button needs an accessible name that identifies its action. The tooltip can add a description; it should not be the only labeling strategy. MDN’s tooltip role guidance distinguishes these responsibilities and recommends visible descriptions where practical.
For a familiar toolbar action, a visual tooltip may repeat the action name to help sighted users recognize the icon. Review the accessibility relationship separately so the same phrase is not unnecessarily presented as both name and description.
Keep instructions such as required formats visible. A person should be able to consult a requirement while entering data, not remember it after a transient bubble disappears.
Make hover and focus equally useful
Hover is one route to the explanation, not the entire interaction model. W3C’s guidance for content on hover or focus notes that hover-triggered content should also be available through keyboard focus.
For the refresh example, our recommended contract is straightforward:
- Hovering the button reveals its supplementary explanation after the chosen opening delay.
- Focusing the button also makes the explanation available, without requiring activation.
- Pressing Escape hides the bubble while leaving focus where it is.
- A fresh interaction can reveal it again.
Do not make focus itself refresh the results. Reading about an action and activating it are different intentions.
Dismissible, hoverable, and persistent
WCAG 2.2 Success Criterion 1.4.13 identifies three conditions for additional content triggered by hover or focus:
- Dismissible: Users can dismiss it without moving hover or focus, subject to the criterion’s stated exceptions.
- Hoverable: When hover opens it, the pointer can move onto the added content without making it disappear.
- Persistent: It remains visible until the relevant hover or focus ends, the user dismisses it, or the information is no longer valid.
The dismissibility exceptions include content that communicates an input error or does not obscure or replace other content. We still recommend Escape as the consistent tooltip dismissal convention. See the full W3C explanation and exceptions.

The pointer route deserves deliberate design. A bubble may look close to its trigger yet disappear while someone crosses the gap. Move slowly from the button into the text, including diagonally, and check that the explanation remains available. W3C’s SCR39 technique includes pointer access and dismissal in its test procedure.
We also recommend checking Escape while the trigger remains focused. If the bubble immediately reappears, dismissal has not meaningfully given the user control. Define when a new interaction is allowed to reopen it.
For a supplementary visual explanation, Tech Bacon’s educational video discusses tooltip accessibility. Use the standards linked here for the requirements; the video is not a conformance test.
Give touch users an intentional alternative
Do not translate “hover opens help” into “the first tap does not perform the action.” On a refresh button, our recommended result of tapping is refreshing. Spending that tap on an unexpected explanation changes the control’s meaning.
If the optional hint is unnecessary on a small screen, the control may work without showing it. If the information is needed, use visible help or a clearly named help control that opens an appropriate panel. Design that interaction explicitly, including how it closes and how its contents are reached.
Long press should not be the only way to discover necessary guidance. Test on an actual touch device rather than assuming a desktop simulation captures the whole experience.
The HTML title attribute is not a universal shortcut. The HTML Standard warns against relying on it, citing limitations for users with touch-only devices, keyboards, and assistive technology. A browser-generated hover bubble does not settle the content or interaction decisions described here.
Think about hybrid use too: someone can touch a screen, use a mouse, and then switch to the keyboard. Review those transitions, not just three isolated device categories.
Connect the explanation to the actual control
Visual attachment and accessible attachment are separate responsibilities. A bubble can point at the right button while its description is associated with the wrong element.
In WAI-ARIA 1.2, the tooltip container uses role="tooltip", and authors associate it with the related element through aria-describedby. These semantics describe the relationship; they do not implement opening, closing, or positioning.
For an application review, inspect the rendered control that actually receives focus. Ask:
- Does it expose a meaningful name, such as “Refresh results”?
- Does its description resolve to the intended supplementary text?
- Has adding that description preserved other relevant help relationships?
- After a list update or route change, does the description still belong to the correct control?
Treat those as integration questions, whether you use a Vue wrapper, a custom element, or application-owned markup. Do not assume the component name visible in your source is the element exposed to assistive technology.
The APG tooltip pattern is explicitly marked as work in progress. Its interaction guidance is useful, but following a pattern or adding an ARIA role is not independent proof of accessibility conformance.
Finally, test the resulting name and description with the browser and screen-reader combinations your product supports. Record whether the control is understandable and its supplementary information is available, rather than expecting every combination to speak identical words.
Treat placement and timing as part of readability
“Place it above the button” is a preference, not a complete layout rule. Near a viewport edge, the preferred position may leave part of the message off-screen.
The official Floating UI positioning tutorial illustrates two useful concepts: flipping to another side when the preferred side lacks room, and shifting a bubble to keep it within a boundary. These concepts help define expected behavior even when your component handles positioning internally.
Review placement with the longest realistic message, not just “Save.” Include narrow windows, zoomed layouts, scrolling containers, and controls inside other overlays. Ask whether the text stays associated with its trigger without covering the information someone is actively using.
We recommend allowing text to wrap instead of forcing every explanation onto one line. If the bubble becomes awkwardly large after translation, reconsider both the wording and whether a tooltip remains the right container.
Choose timing by its purpose. An opening delay can be tuned to reduce unwanted flashes while crossing a toolbar. A closing grace period can help a pointer cross a small gap. Neither should become an arbitrary reading deadline.
Document those choices consistently across related controls. Avoid presenting a particular number of milliseconds as an accessibility guarantee; evaluate the resulting interaction instead.
Turn the design decision into a Vue component brief
Before implementing, write a short behavior brief that another developer can review without opening the component source.
For our refresh example, it might say:
The button is named “Refresh results.” Its optional description explains that refreshing preserves filters. Hover and keyboard focus reveal the description. Escape dismisses it without moving focus. The pointer can enter the bubble, and the message has no reading countdown. Tapping the button performs the refresh action.
Add the application-specific details that cannot be inferred from a generic component: translated text, constrained layouts, supported input methods, and what happens when the trigger disappears.
Keep this brief separate from an API inventory. A prop called “delay” does not establish whether keyboard access, dismissal, and pointer travel work together. A placement option does not prove the message fits inside your actual drawer.
For editable primitives, distinguish changes to appearance from changes to the contract. Adjusting spacing may look cosmetic, but it can alter the pointer route. Replacing a trigger may affect the focused element. Review the relevant behavior whenever those relationships change.
A concise tooltip review checklist
Use this as a design handoff and integration review, not a substitute for broader accessibility testing:
- Purpose: The interface remains understandable if the tooltip never opens.
- Content: The message answers one question without hiding requirements, errors, or consequences.
- Container: Links, inputs, and other interactive content use a suitable panel instead.
- Naming: The control has a meaningful accessible name independently of the bubble.
- Access: Pointer hover and keyboard focus both provide the explanation.
- Dismissal: Escape closes it without moving focus or causing immediate reopening.
- Pointer route: The pointer can enter the bubble without losing it.
- Reading time: There is no countdown while the relevant interaction remains active.
- Touch: Necessary information has an intentional route, and the primary action works normally.
- Layout: The message remains readable in narrow, zoomed, translated, and scrolling views.
- Updates: Replacing or removing the trigger does not leave stale help behind.
Keep one representative example in the consuming application for review. An isolated preview is useful, but it cannot establish how every surrounding layout and control will behave.
Start with the information, then choose the primitive
We recommend reviewing one busy toolbar or form before adding more tooltips. Improve unclear labels, move essential guidance into view, and reserve the remaining bubbles for genuinely supplementary explanations.
When you are ready to implement that contract, open our Vue Tooltip Component reference for its playground and examples. Evaluate the result in your application rather than treating a library choice as the end of the design review.
Sources
- U.S. Web Design System: Tooltip.
- W3C: Tooltip Pattern and WAI-ARIA 1.2 tooltip role.
- W3C: Understanding Content on Hover or Focus and SCR39 testing technique.
- MDN: ARIA tooltip role.
- WHATWG: HTML title attribute.
- Floating UI: Positioning tutorial.
- DOM Studio: Vue Tooltip Component.
