Icons have no alt text for accessibility
See original GitHub issueWhen marking up an icon, there’s no way to identify what the icon means except by putting text beside. Clients without knowledge of image sprites or just images, really, are at disadvantage.
For example, I’m trying to display a list of items with boolean attributes:
## ACME TV ##
Electric: yes
HD: yes
USB port: no
For UX, I want to replace yes and no’s with pretty little icons. However, replacing the text values makes the HTML lose the yes/no values
{Electric} + i.icon-ok
{HD} + i.icon-ok
{USB} + i.icon-remove
A text-only browser viewer would have no idea of what is present or not.
Issue Analytics
- State:
- Created 11 years ago
- Comments:16 (4 by maintainers)
Top Results From Across the Web
Writing Alt Text for Accessibility: Guidelines and Examples
It's increasingly common to see icons which stand on their own, with no text around them at all. In that case, it's VERY...
Read more >Do icons need alt attributes? - DEV Community
If an icon is added using an inline image element, it must have an alt attribute. The value of that alt attribute can...
Read more >Tips and Tricks | Web Accessibility Initiative (WAI) - W3C
Superfluous information in the text alternative: Usually, there's no need to include words like “image”, “icon”, or “picture” in the alt text. People...
Read more >Accessibility: Image Alt text best practices - Siteimprove Support
The alt text needs to describe the image as concisely as possible. As a rule of thumb: avoid writing text alternatives longer than...
Read more >Google Explains Alt Text for Logos & Buttons
Alt Text on Buttons Are For Accessibility Not SEO. John Mueller makes it clear that there is no SEO purpose for adding alt...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@luisfernandos you do realise that this thread is 2 years old, right? 😃
Why would you not implement this? It’s a very common and recommended best-practice for accessibility and SEO to put text inside icons.