Skip to main content
CriticalWCAG 1.3.1, 4.1.2 · Level APerceivable

Icon-Only Control Lacks Description

Flags links and buttons containing only SVG or vector glyphs with no textual label or aria-label attributes.

Rule ID: custom-aria-icon-missing · reported under Needs review, because a person should confirm it.

Who this affects

How to fix it

Problem

<button><svg class="w-4 h-4"></svg></button>

Fixed

<button aria-label="Delete item permanently"><svg class="w-4 h-4"></svg></button>

These are short examples. In the extension, A11yEngine points to the element on your own page and can suggest a fix for your code (HTML, React, Vue or Tailwind).

Find this on your own pages

Check any page for this and 100+ other issues in your browser, free.

← All rules