WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: What ARIA role should a pointer have?

for

From: glen walker
Date: Jul 23, 2018 7:14AM


Yes, I was hesitant to point it out but the problem was that there was not
an existing role that fit and aria-roledescription seems to be the way to
solve that. Would love to hear if you have a better idea.

Another option that sorta kinda works if you use your imagination, is to
use a role="definition" and role="term", but again I'm not sure how well
supported they are. role="definition" has been around since ARIA 1.0 but
role="term" is new in 1.1. Native <dl>, <dd>, and <dt> has various support
(I know NVDA and JAWS treat them differently) so these roles might be
treated similarly.

Since you are asking a question and the answer relies on moving the object
to the right spot, the answer could be considered the "definition". I
suppose you could use role="term" on the question but am not sure that's
necessary, although the doc of "definition" says you should pair it with
"term". With role="definition" on the moveable object in combination with
aria-roledescription, it might be enough to get your point across. Not
perfect, but better than nothing.


On Mon, Jul 23, 2018 at 5:37 AM, Patrick H. Lauke < <EMAIL REMOVED> >
wrote:

> Related to aria-roledescription, I'd be careful in embracing that. AT
> users know what certain specific roles are, and how they can be interacted
> with. While it's cute that we can give very custom and specific announced
> roles, they will invariable lead to confusion as AT users will potentially
> have no clue what, say, a "hotspot" is compared to a "button" or some other
> standard role.
>
>