Use aria-roledescription only on elements with a semantic role

This check is deprecated and off by default; no other rule replaces it. The advice still holds: aria-roledescription only renames an existing role, so put it on elements with a meaningful role, and use it sparingly.

Deprecated

Rule IDaria-roledescription
ImpactSerious
Success criterion 4.1.2 Name, Role, Value · A
StandardsWCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549
Readabler fix Needs a change in the website’s code

Example

Before
<div aria-roledescription="slide">
  <img src="spring-sale.jpg" alt="Spring sale: 30% off garden furniture">
</div>

Screen readers ignore the description on a plain div, so users never hear that this is a slide.

After
<div role="group" aria-roledescription="slide">
  <img src="spring-sale.jpg" alt="Spring sale: 30% off garden furniture">
</div>

A screen reader announces “slide” before the image, telling users they are inside a carousel slide.

Why it matters

Screen readers announce an element's role, such as “button” or “group”, so users know what it is and how to use it. aria-roledescription swaps that word for a custom one, like “slide” or “map pin”. On an element without a semantic role there is no role to rename, so screen readers drop the attribute or behave inconsistently.

Used carelessly, it also does harm in the other direction. Replacing “button” with an invented word hides from blind users that the element can be pressed, and voice control users no longer know what to call it. Braille users get the full custom text, which takes space on a short display. The attribute is for rare cases where the standard role name is misleading, not for branding.

How to fix it

Give the element a role. Add a role that fits, then rename it. For carousel slides, role="group" is the usual choice:

<section aria-roledescription="carousel" aria-label="Offers">
  <div role="group" aria-roledescription="slide" aria-label="1 of 3">…</div>
</section>

Native elements with a built-in role, such as <button>, <section> with a name or <img> with alt text, also qualify.

Keep the original meaning. The custom description should still tell users what the element does. “Toggle button” is fine; “Magic” is not.

Write it in the page language and keep it short. It is read every time the element is reached.

Remove it when in doubt. The standard role name is understood by every screen reader and is translated for users of other languages. Use aria-roledescription only when the standard name would truly mislead.

Do not leave it empty. An empty value is ignored and may confuse testing tools.

Checklist

  1. Put aria-roledescription only on elements with a role.
  2. Use role="group" for carousel slides that need a custom description.
  3. Keep the description short, localised and true to the role.
  4. Never use it to hide that an element is a button or link.

How the check works

This deprecated check is disabled by default. When enabled, it looks at every element with aria-roledescription. It passes when the element's explicit or implicit role is one that screen readers reliably support for this attribute (for example button, img, checkbox, radio or combobox). Other semantic roles are flagged for manual review in screen readers. It fails when the element has no semantic role at all.

Resources

Updated October 27, 2026