Categories
HTML Accessibility

When it says ‘name from Author’ it means from you, not Boll or Bukowski

Jonny lives on a farm with Kathryn, out in the wilderness of Canada. All was quiet until David, Patrick and I arrived unexpectedly for a visit...

Which ARIA roles require an accessible name?

There is a list in the ARIA spec that details Roles Supporting Name from Author and which of these require an accessible name:

note: I have removed the roles that don’t require a name:

Name required – the rest

A name equates to the accessible name that will be exposed in the browser accessibility tree and generally announced to screen reader users by default.

Note on naming from contents

For any role that allows naming from contents (child text nodes) it will be dependent on the type of HTML element you use the role on:

For example role="img" allows naming from contents and author, but  <hr> is a void element, so will only allow use of aria-label or aria-labelledby.

#name from aria-label
<hr role="img" aria-label="poot">

#name from aria-labelledby
<hr role="img" aria-labelledby="txty">
<span id="txty">poot</span>

#name from contents for role="img" using a <div>
<div role="img">poot</div>

Note: In the case of <img> element always use alt as a naming method unless there is very good reason not to. Note also alt does nothing on role="img" so don’t use it there.

Further reading

Further Listening

Grinspoon Chemical Heart – Lyrics
Lyrics
When
Look for a ride and you need to get high my friend
Spend all your time just walkin around instead
Like black rose there's somebody to hold for them
For them
Let's
Go outside have nothin to hide for free
Can't seem to see the forest from the trees
Grass is always greener but how do ya know we'll see
We'll see
Can't get started chemical heart
Every time I get started you pull me apart
Can't get started chemical heart
Every time I get started you pull me apart
Forgotten
Maybe things are right on the other side undone
Better of wishin for the stars to kill the sun
Like black rose if nobody can hold no one
No one
Can't get started chemical heart
Every time I get started you pull me apart
Can't get started chemical heart
Every time I get started you pull me apart
Yeah
When
Look for a ride and you need to get high my friends
Spend all ya time just walkin around instead
Like stack road there's somebody to hold for them
For them
Can't get started chemical heart
Every time I get started you pull me apart
Can't get started chemical heart
Every time I get started you pull me apart
Yeah
Can't get started
Chemical heart
Everytime I get started
You pull me apart
Can't get started
Chemical heart
Everytime I get started
You pull me apart

Leave a Reply

Your email address will not be published. Required fields are marked *