ARIA tooltip elements do not have accessible names

How to fix the aria-tooltip-name accessibility rule. ARIA.

The message you saw

Lighthouse and PageSpeed Insights
ARIA tooltip elements do not have accessible names.
axe-core, axe DevTools and this checker
ARIA tooltip nodes must have an accessible name (rule aria-tooltip-name)

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

  1. Run the checker on the page, ideally with the tooltip open: the report shows the empty tooltip element.
  2. Search your code for role="tooltip" and check what is inside it in the rendered page.

How to fix it

  1. Put the tooltip’s words inside the element as real text.
  2. Connect it to its control with aria-describedby on the control, pointing at the tooltip’s id.
  3. 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

WCAG success criteria

When this rule fails, the page fails:

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

More detail