Style

A tooltip can be placed on a light or dark background. It includes text wrapped in a background container that can sometimes have a drop shadow. The background container also includes an arrow that can point to different icons.

Tooltip component style

Light theme

Tooltip component, light theme

Dark theme

Tooltip component, dark theme

Responsive design

A tooltip can be used on both large and small screens depending on the amount of content or available screen space.

Breakpoints

A tooltip mostly remains the same on large and small screens.

Large screens

Tooltip component responsive design, large screens

Small screens

Tooltip component responsive design, small screens

Interaction states

A tooltip appears next to an icon on hover, focus, or when tapped.

Tooltip component interaction states, hovered or tapped

Best practices

Accessibility

Do not use a dark theme (white) tooltip on a light environment because it will blend into the background too much.

Tooltip component best practice 1

Orientation

Content within a tooltip should not be cut off by the browser window. Change the tooltip orientation or break the text into multiple lines if it does.

Tooltip component best practice 2

Pairing

Do not add a tooltip to things that do not require further explanation, like obvious links or components.

Tooltip component best practice 3

Spacing

A Tooltip uses PatternFly 4 spacers to define spacing values between elements. Every tooltip orientation contains the same amount padding in between the arrow and icon.

Tooltip component spacing, light theme
© 2021-2023 Red Hat, Inc. Deploys by Netlify