Links & buttons
Button has no text
WCAG 2.2 success criterion 4.1.2 Name, Role, Value (Level A)
- WCAG 2.2
- 4.1.2 Name, Role, Value
- Level
- A
- Default severity
- Error
- Available in
- Free
Why it matters
A button with no name is announced as just "button". Icon-only buttons — close, menu, search, play — are the usual cause.
Who it affects: Screen reader users who browse by a list of links, keyboard users, and people using voice control who say a link's words to click it.
30.6% of the top million home pages had empty buttons in 2026. WebAIM Million 2026
What Lumtera flags
<button> elements, input buttons and role="button" elements with no text, value, alt or aria-label.
Check ID button-no-name — use it to filter the content report or with wp lumtera issues --rule.
How to fix it in WordPress
Add visible text to the button that says what it does. For icon-only buttons, add an aria-label such as aria-label="Close menu".
Example
<button class="close"><svg aria-hidden="true">…</svg></button>
<button class="close" aria-label="Close menu"><svg aria-hidden="true">…</svg></button>
How to check your fix
- Update the post. The issue disappears from the Accessibility sidebar on the next check, and from the site report on the next scan.
- Press Tab through the page. Every link and button should receive visible focus, and its text should make sense read on its own.
Find this issue across your whole site
Lumtera runs this check in the block editor sidebar as you write, in the Elementor panel, in Review mode on the live page, and across the whole site in the content report and with wp lumtera scan. You can change its severity or turn it off in Accessibility → Settings.
Related checks
-
WCAG 2.4.4 · AError
Link has no text
-
WCAG 2.4.4 · ANeeds review
Link text is vague
-
WCAG 4.1.2 · ANeeds review
Link does not go anywhere
-
WCAG 3.2.5 · AAATip
Link opens a new tab without warning
-
WCAG 2.4.4 · ANeeds review
Link opens a document file
-
WCAG 2.4.4 · ATip
Link text is a web address
Start with the free plugin today
All 64 checks, the editor sidebar, Elementor panel and site report — free, with no account and no page limits.