- 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
Icon fonts (<i class="fa fa-trash">) conveying meaning with no text alternative and not hidden when redundant.
Example
<button><i class="fa fa-trash"></i></button> Why it matters
A taxpayer using a screen reader on a delete button hears nothing, or a nonsense character name, and risks removing the wrong filing without warning.
How to test
Turn on a screen reader and tab to icon-font buttons (e.g., a trash-can icon for delete): if it announces only the ligature character or nothing, it fails.
How to fix
Hide the glyph and put its meaning in an aria-label. Icon fonts render as font glyphs, not images, so alt doesn't apply to them at all.
<button aria-label="Delete this filing"><i class="fa fa-trash" aria-hidden="true"></i></button> Outcome
A taxpayer hears "delete this filing" before activating the button, and only removes what they intend to.
Who is affected
Screen reader users managing sensitive documents face real financial risk from an unlabeled destructive action.
Learn more
- Understanding Understanding document (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