Back to home

Display A, announce B - link content

Developers may wish to display one piece of content, but replace it with other content for screen reader users - such as replacing short country currency codes with full descriptions.

Option 1: Link content - aria-hidden="true"

Test

Example

United Arab Emirates Dirham

Code sample

<a href="#">
	<span aria-hidden="true">AED</span> 
	<span class="sr-only">United Arab Emirates Dirham</span>
</a>
Support chart
OS Browser NVDA 2014.4 JAWS 16 VoiceOver
Windows 7 IE 11 PASS PASS
Windows 7 IE 8 PASS PASS
Windows 7 Chrome 39 PASS PASS
Windows 7 Firefox 34 PASS PASS
OSX 10.9 Chrome 39 PASS
OSX 10.9 Firefox 34 PASS
OSX 10.9 Safari 7 PASS

Option 2: Link content - role="presentation"

Test

Example

BAM Bosnia and Herzegovina Convertible Marka

Code sample

<a href="#">
	<span role="presentation">BAM</span> 
	<span class="sr-only">Bosnia and Herzegovina Convertible Marka</span>
</a>
Support chart
OS Browser NVDA 2014.4 JAWS 16 VoiceOver
Windows 7 IE 11 FAIL
reads both
FAIL
reads both
Windows 7 IE 8 FAIL
reads both
FAIL
reads both
Windows 7 Chrome 39 FAIL
reads both
FAIL
reads both
Windows 7 Firefox 34 FAIL
reads both
FAIL
reads both
OSX 10.9 Chrome 39 FAIL
reads both
OSX 10.9 Firefox 34 FAIL
reads both
OSX 10.9 Safari 7 FAIL
reads both

Option 3: Link content - aria-label=""

Test

Example

Code sample

<a href="#" aria-label="Falkland Islands Malvinas Pound">
	<span aria-hidden="true">FKP</span>
</a>
Support chart
OS Browser NVDA 2014.4 JAWS 16 VoiceOver
Windows 7 IE 11 PASS PASS
Windows 7 IE 8 PASS PASS
Windows 7 Chrome 39 PASS PASS
Windows 7 Firefox 34 PASS PASS
OSX 10.9 Chrome 39 PASS
OSX 10.9 Firefox 34 FAIL
reads both
OSX 10.9 Safari 7 PASS

Bottom of page - Back to home