WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: [External Sender][EXTERNAL]Linking article previews

for

From: Brian Lovely
Date: Jul 22, 2019 9:17AM


Well, my primary problem was I didn't want the entire div as the call to
action for a link. Mark's solution actually circumvents that.

On Mon, Jul 22, 2019 at 11:15 AM Brian Lovely < <EMAIL REMOVED> >
wrote:

> " you might find a combination that doesn't like something in it" --ain't
> that the truth
>
> On Mon, Jul 22, 2019 at 11:11 AM Mark Magennis <
> <EMAIL REMOVED> > wrote:
>
>> No reason why not. The title would be read twice though. Once as the link
>> text and once as itself. You could add aria-hidden to the title to prevent
>> that. You could even use aria-labelledby instead of aria-label because it's
>> a bit more elegant and I think it will still work even when it's pointing
>> at a hidden element.
>>
>> You would have to test this across all your supported browser/screen
>> reader combinations though because it's possible that you might find a
>> combination that doesn't like something in it, e.g. an aria-label on a div
>> even if it has a link role.
>>
>> Mark
>>
>> Mark Magennis
>> Skillsoft | mobile: +353 87 60 60 162
>> Accessibility Specialist
>>
>>
>>