Link labels

Hello

Is linktext a 'label' from a wcag pov? Because 'label in name' applies to links, but I've had people (I think in this forum) say that link text isn't a label.

My issue is that if you have a button with a label that isn't programmatically associated that would fail 1.3.1 (and 4.1.2 if there is no accessible name, or 2.5.3 if there is an accessible name but it doesn't contain the label string)

But 2.4.4 says text only needs to be part of the 'programmatically determined link context' this extends the idea of 'programmatically associated' so is actually less stringent than 1.3.1. But that means we are less strict with link labels than button labels. Aka
<p>For product information <button> click here </button></p> A 1.3.1 fail?
<p>For product information <button role="link"> click here </button></p> AAA 2.4.9 fail?

And then you have the opposite problem, where labels are not descriptive
<button> click here </button></p> AA 2.4.6 fail? <button role="link"> click here </button> A 2.4.4 fail?

I'm just confused about why there is a separate A fail for links to be honest and wondered if someone could provide some clarity.

Thanks

Sarah

Sent from Outlook for iOS<https://aka.ms/o0ukef>

Received on Tuesday, 9 April 2024 14:30:47 UTC