You’ve gotta use aria-label when there is no discernible label for a link

January 2, 2020 , I learned...

I wrapped an element in an <a> tag. That element had text in it, but that content was not directly related to the parent anchor. Google’s Measure tool was dinging my accessibility score because of it. I was able to wipe things clean by adding an aria-label on the anchor.

[[code markup="none"]]czoxMDI6XCI8YSBocmVmPVwiL2NvbnRhY3RcIiBhcmlhLWxhYmVsPVwiTXkgY29udGFjdCBmb3JtXCI+CiAgPGFydGljbGU+CiAgICA8aDM+e1smKiZdfUNvbnRhY3QgTWU8L2gzPgogIDwvYXJ0aWNsZT4KPC9hPlwiO3tbJiomXX0=[[/code]]