You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: The Tooltip component adds a tooltip to add context to elements on the page.
7
+
description: Use tooltips to add context to elements on the page.
8
8
---
9
9
10
10
Tooltip only appears on mouse hover or keyboard focus and contain a label or description text. Use tooltips sparingly and as a last resort. [Consider these alternatives](https://primer.style/design/accessibility/tooltip-alternatives).
@@ -30,7 +30,7 @@ import InlineCode from '@primer/gatsby-theme-doctocat/src/components/inline-code
30
30
</Tooltip>
31
31
</Box>
32
32
33
-
When using a tooltip, follow the provided guidelines to avoid accessibility issues.
33
+
When using a tooltip, follow the provided guidelines to avoid accessibility issues:
34
34
35
35
- Tooltip text should be brief and to the point.
36
36
- Tooltips should contain only **non-essential text**. Tooltips can easily be missed and are not accessible on touch devices so never use tooltips to convey critical information.
@@ -71,13 +71,13 @@ Set direction of tooltip with `direction`. The tooltip is responsive and will au
0 commit comments