Tooltips are often used to convey information. However, tooltips are rarely appropriate, and their misuse can result in a myriad of accessibility issues. Always consider not using a tooltip for an improved user experience.
p), and should only ever be set on interactive elements (for example,
a). Tooltips on non-interactive elements are not accessible to keyboard users and screen reader users.
Use a tooltip to give a text label to an icon button
Don't use tooltips on non-interactive elements
If you come across a design or a page with a tooltip on a static element (for example,
p), remove it. Consult a designer for an alternative way of conveying the information.
If you determine that tooltips are appropriate for your use case, make sure to carefully follow guidelines set in Primer ViewComponents: Tooltip component.
See Tooltip interface guidelines for example alternatives to using tooltips.