- Success Criterion 1.1.1
- Conformance level A
Icon Font Used to Convey Meaning With No Text Backup
1.1.1 — Non-text Content
Scenario
Setting
A government tax-filing portal
What’s wrong
The delete control is a button that only contains an icon-font glyph (<i class="fa fa-trash">). The glyph conveys "delete" visually, but the button has no accessible name and the glyph is not hidden from assistive technology, so a screen reader may hear nothing useful, or a private-use character, instead of "Delete this filing" (1.1.1; also fails 4.1.2 for a nameless control).
Example
<button type="button">
<i class="fa fa-trash"></i>
</button>
<!-- trash icon only; the button deletes the current tax filing --> Why it matters
A taxpayer using a screen reader may activate the wrong control, or avoid the delete button entirely, because nothing clear says what it does. On a tax portal that can mean deleting the wrong filing.
How to test
Find buttons or links that show only an icon-font glyph (Font Awesome, Material Icons, and similar). In the browser's accessibility tree (DevTools), the control should have a non-empty name that states its purpose. Check that the glyph itself is marked aria-hidden="true" (or role="presentation") when its meaning is already on the control. Then tab to it with a screen reader: you should hear the purpose, such as "Delete this filing, button", not silence or a meaningless character.
How to fix
Give the control a short text alternative that says what it does (G94 / ARIA6): put aria-label="Delete this filing" on the <button>, and hide the icon-font glyph with aria-hidden="true" so assistive technology does not also announce the private-use character. Icon fonts are font glyphs, not <img> elements, so alt does not apply. Prefer visible text next to the icon when the UI allows ("Delete" plus a decorative glyph), and keep aria-hidden on the glyph. F26 (1.3.3) is related when meaning is conveyed only by shape with no text alternative at all.
<button type="button" aria-label="Delete this filing">
<i class="fa fa-trash" aria-hidden="true"></i>
</button> Outcome
A taxpayer hears something like "Delete this filing, button" before activating it, and only removes what they intend to. Sighted users still see the trash icon.
Who is affected
Screen reader users, and people using text-to-speech or braille, who get no clear name for an icon-font-only control — especially destructive actions on sensitive documents.
Learn more
- Understanding Understanding document (opens in a new tab)
- Technique Technique G94: Providing a short text alternative that serves the same purpose and presents the same information (opens in a new tab)
- Technique Technique ARIA6: Using aria-label to provide labels for objects (opens in a new tab)
- Technique Failure F26: Using a graphical symbol alone to convey information (opens in a new tab)
Related scenarios
- Product Photo Added as a CSS Background With No Alt Text
- Chart Alt Text That Never Explains What Each Color Means
- Outdated Alt Text That No Longer Matches the Image
- Alt Text Left as a Filename Instead of a Real Description
- Decorative Image Not Hidden From Screen Reader Users
- Decorative Image Given Alt Text Instead of Being Marked Silent