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 10:49AM


Thank you, Glen,

What I learned besides for SC 2.5.3:
"aria-label" means de facto "aria-name" and "aria-labelledby" means de facto "aria-namedby"!

The labels of the ARIA-attributes won't be changed. But we have to keep their impact according to the accessible name in mind.


-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of glen walker
Sent: Tuesday, May 9, 2023 3:00 PM
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: Re: [WebAIM] Descriptive label for Read more button

Yes, something like that.


On Tue, May 9, 2023 at 6:56 AM < <EMAIL REMOVED> > wrote:

> 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
>
>
>