ARIA tooltip elements do not have accessible names
How to fix the aria-tooltip-name accessibility rule. ARIA.
The message you saw
Lighthouse runs axe-core inside it, so both are the same check, and the fix below works whichever tool showed you the message.
What it means
A tooltip is the small popup that explains a control when you hover over it or focus it. Marked up with role="tooltip", its text is what a screen reader reads. This message means an element with that role has no text and no aria-label, aria-labelledby or title, so there is nothing to read.
It usually happens when a script creates the tooltip container when the page loads and fills in the text only when it opens, or draws the text with CSS (content: in a ::before) or an image.
Who is affected
A role="tooltip" element has no text or name, so there is nothing for screen readers to read.
Screen-reader users miss the explanation. If the tooltip names an icon-only button, they don’t learn what the button does.
How to find it
- Run the checker on the page, ideally with the tooltip open: the report shows the empty tooltip element.
- Search your code for
role="tooltip"and check what is inside it in the rendered page.
How to fix it
- Put the tooltip’s words inside the element as real text.
- Connect it to its control with
aria-describedbyon the control, pointing at the tooltip’sid. - If your script fills the text only when it opens, either render the text from the start (hidden until needed) or add the role only when the text is there.
Example
Before
<button aria-describedby="tip">Copy</button>
<div role="tooltip" id="tip"></div>After
<button aria-describedby="tip">Copy</button>
<div role="tooltip" id="tip" hidden>Copies the link to your clipboard</div>Common mistakes
- A tooltip must not be the only name of an icon button. Give the button its own
aria-labeltoo; the tooltip then adds a description. - Tooltips that appear on hover also need to appear on keyboard focus, stay while the pointer is over them, and close with Escape (WCAG 1.4.13).
WCAG success criteria
When this rule fails, the page fails:
- 4.1.2 Name, Role, Value (Level A, WCAG 2.0, 2.1, 2.2)
Check your fix
Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools. Scan again after your change: when the rule no longer appears under the problems, the fix worked.
An automated pass means this rule found nothing wrong. It doesn’t prove the page is accessible: some of what WCAG asks for needs a person to check, and the report’s manual checklist lists those steps.
Related fix guides
- Buttons do not have an accessible name
- Elements with
role="dialog"orrole="alertdialog"do not have accessible names - ARIA
progressbarelements do not have accessible names button,link, andmenuitemelements do not have accessible names
More detail
- Deque University’s reference for aria-tooltip-name (the makers of axe-core, the engine our scanner uses)
- W3C’s Understanding 4.1.2
- All fix guides