Augmenting Button Text with ARIA

Various examples of using ARIA to augment the text of a button. The example below includes a set of invites to connect to colleagues. Since the Accept and Reject buttons are repeated for each invitation it is desirable to add the colleague name associated with each button for the benefit of users who can't visually comprehend the scope of the buttons. Different ARIA methods are used and documented in each of the examples below. Table of results of testing screen readers with ARIA supported browsers.

Colleagues for Jane Doe

5 New Invitations

picture of Amy Jones

Amy Jones

You have 4 colleagues in common

I'd like to add you to my colleagues list.

Uses offscreen span and aria-labelledby to label the button.

  


picture of Bill Green

Bill Green

You have 1 colleagues in common

I'd like to add you to my colleagues list.

Uses offscreen span with additional text as part of button text node.

  


picture of Chris Catz

Chris Catz

You have 2 colleagues in common

I'd like to add you to my colleagues list.

Uses aria-describedby to point to node with name.

  


picture of Ima Clone

Ima Clone

You have 0 colleagues in common

I'd like to add you to my colleagues list.

Uses aria-label which is not currently supported but coming in Firefox 3.6

  


picture of Mel O'Drama

Mel O'Drama

You have 1 colleagues in common

I'd like to add you to my colleagues list.

Add additional information in title attribute. Spoken by JAWS 10 after changing button label settings.

  

Posted on April 9, 2009 by Becky Gibson