Skip to main content Home About the Design SystemRoadmap OverviewDesignersDevelopers OverviewColorGridIconographyInteractionsSpacingTypography Overview Global colorBox shadowTypographyBorderOpacitySpaceLengthIconBreakpointsMedia queries All elements Accordion Alert Announcement Audio player Avatar Back to top Badge Blockquote Breadcrumb Button Card Chip Code block Call to action Dialog Disclosure Footer Health index Icon Jump links Menu dropdown Navigation link Navigation (primary) Navigation (secondary) Navigation (vertical) Pagination PopoverPlanned Progress stepper Scheme toggle Site status Skeleton Skip link Spinner Statistic Subnavigation Surface Switch Table Tabs Tag Tile Timestamp Tooltip Video embed OverviewColor PalettesCustomizingDevelopers All PatternsAccordionCall to ActionCardFilterFormLink with iconLogo wallSearch barSticky bannerSticky cardTabsTagTile All Personalization PatternsAnnouncement FundamentalsAccessibility toolsAssistive technologiesCI/CDContentContributorsDesignDevelopmentManual testingResourcesScreen readers Design/code status Release notes Get support

Tooltip

OverviewStyleGuidelinesCodeAccessibilityDemos
Keyboard interactionsAdditional guidelinesSilent tooltipsARIA Authoring Practices Guide (APG)Web Content Accessibility GuidelinesKeyboard interactionsAdditional guidelinesSilent tooltipsARIA Authoring Practices Guide (APG)Web Content Accessibility Guidelines

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 appears
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

Silent tooltips

If you add the silent attribute to an <rh-tooltip>, the content inside the tooltip is no longer accessible. Implementors should take special care when adding this attribute to:

  1. Implement accessible tooltip content by some other means:
    • aria-labelledby
    • aria-label
    • ARIA live region
    • visually hidden text
    • ...or other accessibility feature
  2. Test their custom implementation to make sure the tooltip content can be recognized by assistive technologies—especially screen readers.

To see an example of the silent attribute and how to implement it with accessible content, view the Silent demo. In that demo, the accessible-label attribute is added to <rh-icon> to make the tooltip content accessible to assistive technology.

It's exceedingly rare that users would need to use this attribute. Exercise caution when implementing and test extensively.

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.

© 2025 Red Hat Deploys by Netlify