WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Descriptive label for Read more button

for

From: wolfgang.berndorfer@zweiterblick.at
Date: May 9, 2023 6:56AM


Hi Glen,

> No, it wouldn't be a failure. Aria-labelledby can have multiple IDs so it would point to "read more" and the reviewers name so there is not a 2.5.3 issue and you have the benefit of the full link name in the link list dialog.

Interesting idea, which I hadn't thought of. Am I correct that you thought about something like:

*html code*
<p hidden id="more" >Read more about what </p>
<h2 id="author" >Glen </h2>
<p hidden id="wrote" >wrote</p>
<a href="#"
aria-labelledby="more author wrote" >
Read more
</a>
*html code end*

Tested this code with Jaws + Firefox/Chrome, which announce:
"Read more about what Glen wrote"

But we will still need scripting to identify the individual value for id="author", when there is more than one author in the conversation.

Good luck,

Wolfgang









-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of glen walker
Sent: Saturday, May 6, 2023 5:09 AM
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: Re: [WebAIM] Descriptive label for Read more button

On Mon, May 1, 2023 at 8:40 AM < <EMAIL REMOVED> > wrote:

> Hi Glen,
>
> > I like to use aria-labelled by rather than aria-describedby so that
> > if
> the screen reader user brings up a list of links or a list of buttons,
> the context of the "read more" will appear in that dialog.
>
> We have to be careful:
>
> The label “read more” won’t be part of the *technical* name referenced
> with aria-labelledby, independent of that being a person's name or
> something else.
> That would be a 2.5.3 fail.
>
>
No, it wouldn't be a failure. Aria-labelledby can have multiple IDs so it would point to "read more" and the reviewers name so there is not a 2.5.3 issue and you have the benefit of the full link name in the link list dailog.



> Or do you think about some scripting workaround, adding something to
> “Read more” in aria-label?
>
> No scripting is needed.