Skip to content
IndexRequest a UIAboutContact

Toggletip Info Bubble

An info button that opens a small bubble on click, unlike a hover-only tooltip, so it works with touch and keyboard.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Clean UI mockup of a form row with the label Plan and a small round grey i icon button next to it, a small dark rounded bubble with a tiny arrow opened above the icon reading Billing is monthly and you can cancel any time, the icon highlighted with a thin ring, light theme, flat modern style, plenty of space. Variant: the same bubble flipped below the icon near the top edge. Negative: heavy shadows, clutter, text errors, device frames. Reduced motion: static design.

About this pattern

Definition

A tooltip appears on hover and disappears when the pointer leaves, which fails on touch and for keyboard users. A toggletip is opened on purpose: an info button toggles a short bubble that stays until dismissed with a second click, Escape or a click elsewhere. It suits help text that is more than a label.

Purpose & UX principles

  • Use a real button with aria-expanded and an accessible name like More information about Plan.
  • Show the bubble next to the button and connect it with aria-describedby or place it right after in the DOM.
  • Close on Escape, outside click and a second activation, and keep focus on the button.
  • Keep the text short; for long content use a popover or dialog.

Interaction states

  • Three info buttons in a form; click, tap, press Enter or Space.

Motion specification

  • The bubble fades in over 120ms.
  • Reduced motion: no fade.

Responsive behaviour

  • Do not put essential information only in the bubble; it must be reachable but not required to proceed.
  • Make the bubble flip when near an edge so it is not clipped.

Code

HTML
<div class="bx"><div class="fm" id="fm"></div><p class="out" id="out"></p></div>

Related patterns

Tooltip

↗
TooltipFeedback & Notifications

Anchored Popover

↗
Anchored PopoverOverlays & Dialogs

Inline Alert Banners

↗
Inline Alert BannersFeedback & Notifications