Infotip
A small disclosure for supplementary plain-text help.
Supporting primitive
Use fd-infotip for short supporting explanations that should be available on demand without becoming required instructions. It is the shared InfoTip primitive used by Label and prose footnote previews.
When to use
- Supplementary definitions — terms, acronyms, or policy references that help some readers but are not required to complete the task.
- "Why we ask" explanations — brief context that supports trust without crowding the label or paragraph.
- Inline reference previews — footnotes can use the inline variant to preview citation text while preserving the link to the full note.
When not to use
- Don't hide required instructions — if everyone needs the information, make it visible as hint text or body copy.
- Don't put interactive content inside an InfoTip — links, buttons, forms, and rich content need a dialog or another explicit pattern.
- Don't use it as an error message — use Message for validation feedback.
Examples
Properties
| Name | Type | Default | Description |
|---|---|---|---|
text | string | `` | Plain-text supplementary help shown in the InfoTip panel |
label | string | More information | Accessible name for the trigger |
trigger | string | `` | Visible trigger text. Icon variant falls back to the information icon when empty. |
href | string | undefined | undefined | Optional link target. When present, the trigger renders as an anchor instead of a button. |
variant | "icon" | "inline" | icon | Visual trigger variant. Use inline for text references such as footnotes. |
mode | "click" | "hover-focus" | click | Opening behavior. Use click for icon toggletips and hover-focus for inline references that keep their primary click action. |
open | boolean | false | Reflects whether the InfoTip panel is currently open |
Shadow parts
| Name | Description |
|---|---|
trigger | Button or anchor that opens the InfoTip |
infotip-trigger | Compatibility alias for the trigger part |
Accessibility
- The default trigger is a real
<button>witharia-expanded,aria-controls, andaria-describedby. - Inline references render as real links when
hrefis provided. They keep their primary navigation action while opening the InfoTip on hover or keyboard focus. - The panel uses
role="tooltip"and is referenced byaria-describedbyso assistive technology has a programmatic relationship to the trigger. - Escape dismisses the panel and returns focus to the trigger.
- Hover/focus panels remain hoverable and persistent while the pointer or focus remains on the trigger or panel.
- The default icon trigger is 36px by 36px. Inline references use the WCAG 2.2 inline-target exception but still provide a 24px visual focus/hover affordance.
- The panel is clamped to the viewport on the inline axis and flips above or below the trigger when needed.
Known limitations
- InfoTip content is plain text only in v1.
- The inline variant is intended for short reference previews. Use the full footnote or body content for essential information.
- The component uses the Popover API when available and a narrow fallback path for test and older runtime surfaces.