Links


Several situations where links might be an issue. Remember: descriptive and unique are the requirements.


What to do with multiple links?

Your tools are aria-label, aria-labeledby, aria-describedby and class="sr-only".

Widget Price Actions
Smeck $12 Edit | Delete | Add to wishlist
Stodge $32 Edit | Delete | Add to wishlist
Flaf $1 Edit | Delete | Add to wishlist
Squitch $67 Edit | Delete | Add to wishlist
Speck $32 Edit | Delete | Add to wishlist
Sproing $12 Edit | Delete | Add to wishlist

Fixed (several techniques)

Widget Price Actions
Smeck $12 Edit Smeck | Delete Smeck | Add to wishlist Smeck (using screen reader text)
Stodge $12 Edit | Delete | Add to wishlist (using aria-describedby)
Sproing $12 Edit | Delete | Add to wishlist (using aria-label)
Squitch $67 Edit | Delete | Add to wishlist

Inspect the last row. It has not changed, and yet you could argue that it is ok, even if it is not optimal. How so?


What to do with icon links?

Your tools are aria-label, aria-labeledby, aria-describedby and class="sr-only".


Fixed (several techniques):

E Mail

What happens in these circumstances? Why are some good, some bad?

Good
Bad