Skip to main content Red Hat Design System logo Contribute on Github

Tooltip

Overview Style Guidelines Code Demos Accessibility

Keyboard interactions

A tooltip will appear when the trigger receives focus and disappear when moving focus away from the trigger.

Tooltip keyboard interactions; pressing tab to focus the trigger will show the tooltip, but pressing tab again will hide the tooltip
Key Result
Tab Moves focus to the trigger, tooltip appear
Tab Moves focus away from the trigger, tooltip disappears
Esc Removes a tooltip without moving focus away from the trigger

Additional guidelines

  • Do not use a tooltip on static elements
  • A tooltip should persist while hovering over the trigger and tooltip
  • A tooltip should persist as long as the trigger has focus
  • Users navigating via screen reader must have tooltip text announced to them when it is triggered
  • If a tooltip is added to a disabled trigger, that trigger must be able to receive focus

ARIA Authoring Practices Guide (APG)

Learn to use the accessibility semantics defined by the Accessible Rich Internet Application (ARIA) specification to create accessible web experiences.

View APG resources

Web Content Accessibility Guidelines

Understanding documents provide detailed explanations for Web Content Accessibility Guidelines (WCAG) guidelines and success criteria.

© 2021-2024 Red Hat, Inc. Deploys by Netlify