E-mail List Archives
Re: Alternative to the Title attribute in Links
From: Lovely, Brian (CONT)
Date: Aug 25, 2017 2:03PM
- Next message: Patterson, Christina: "is it necessary to add aria markup to label a section element"
- Previous message: Sarah Jevnikar: "Alternative to the Title attribute in Links"
- Next message in Thread: JP Jamous: "Re: Alternative to the Title attribute in Links"
- Previous message in Thread: Sarah Jevnikar: "Alternative to the Title attribute in Links"
- View all messages in this Thread
A warning about aria-label (and aria-labelledby): they are greedy. Which is to say, they don't concatenate with other possible accessible name strings. So:
<a href="#" aria-label="Opens in a separate window">edit my details</a>
will just read out as "link opens in a separate window"
You could use aria-described by, like
<a href="/en/home?order=field_data_holding&sort=asc" aria-describedby="link_details" class="active">Data Holding</a>
<div id="link_details"> sort by Data Holding</div>
However, I have had this ominous feeling about the title attribute as well, but in an earlier thread it was established that my mistrust was misplaced. Title is a legitimate tool for constructing an accessible name.
- Next message: Patterson, Christina: "is it necessary to add aria markup to label a section element"
- Previous message: Sarah Jevnikar: "Alternative to the Title attribute in Links"
- Next message in Thread: JP Jamous: "Re: Alternative to the Title attribute in Links"
- Previous message in Thread: Sarah Jevnikar: "Alternative to the Title attribute in Links"
- View all messages in this Thread