Don’t Use aria-label on Static Text Elements (2024)

8 points by ethanhawksley


dsh

I've been on a big accessibility kick at work over the last few weeks and a lot of this feels very straight-forward and obvious. That being said, I can see a huge amount of value in a post like this to people who don't quite get accessibility.

What's funny is when I saw the example of the <span> with the plant emoji for "Vegetarian" my first thought was "Why would somebody just us an emoji for information on a page." Then I remembered this is a very cute trend in web development (and LLM output) to emoji-fy the crap out of your web pages/apps. I am glad my instinct to just put text in the <span> was the recommendation from this post.