Empty or Decorative Icons Exposed to Assistive Technology
WCAG Focus: WCAG 1.1.1 (A), 4.1.2 (A)
Icon fonts (like Font Awesome or Dashicons) and inline <svg> graphics are frequently placed next to WordPress button labels or headings. If those decorative icons are not hidden from assistive technology, screen readers may read out meaningless Unicode symbols, private-use characters, or stray SVG text.
Why This Pattern Violates WCAG
WCAG 1.1.1 Non-text Content (Level A) requires purely decorative visuals to be implemented in a way that assistive technology can ignore.
Without aria-hidden="true", icons clutter speech output.
Code Comparison
Inaccessible Unhidden Decorative Icon
<button type="button"><i class="fa fa-download"></i> Download Guide</button>
Compliant Hidden Decorative Icon
<button type="button">
<i class="fa fa-download" aria-hidden="true"></i>
Download Guide
</button>
How to Fix It in WordPress
- Add aria-hidden="true" to decorative icon font <span>/<i> elements and inline <svg> graphics paired with visible text.
- If an icon stands completely alone inside a button or link without visible text, give the control an aria-label.
Finding This Issue Automatically
Themes and page builders inject hundreds of decorative icons across buttons, feature lists, and metadata rows. The WP ADA Compliance Check plugin spots exposed icon tags and will automatically fix the issue by adding aria-hidden="true" to Font Awesome icons lacking text, titles, or aria-labels—and fixing Font Awesome icons inside links.
WCAG References & Supporting Materials
WCAG Success Criteria
- Understanding WCAG 1.1.1 Non-text Content (Level A)
- Understanding WCAG 4.1.2 Name, Role, Value (Level A)
Supporting Documentation & Guides
- W3C Technique H67: Using null alt text (alt="") for decorative images — Hiding decorative, spacer, and icon images cleanly from assistive technology.
- W3C WAI Tutorial: Images — Alt text rules for informative, decorative, functional, and image-map images.
Subscribe
Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

