UU-sjekken

Fix guides

How to fix: custom buttons or menu items without a name

WCAG 2.2 success criterion 4.1.2 (level A)

Why it matters

Elements with role="button", "link" or "menuitem" are announced without a name.

How to fix

Give them visible text, aria-label or aria-labelledby.

<div role="button" tabindex="0" aria-label="Open filter">…</div>

Test it yourself

Common mistakes

Check your own site

Find this and other problems on your website in 30 seconds, free.