Go to overview: WAI-ARIA techniques with code examples
aria-label
to provide an invisible label to a simple close-button
(X) of a pop-up divDetlev Fischer, (detlev [dot] fischer [ at ] testkreis [dot] de)
Last update: 15 February 2013
This example shows how aria-label
may be used on a simple close-button used in pop-up div
s. It also utilises the focus management scripts from Making an accessible dialog box by Nicholas C. Zakas.
This is a div box with a 'close' button.
aria-label
to provide an invisible label to a close button (x)The sequence runs from focusing the trigger link to refocusing the same link after closing the div box. Tabbing action (and left-right swiping action) is indicated by ||, enter (and double-tap) is indicated by [ENTER].
Win 7, IE 9, JAWS 14 | supported |
JAWS speaks content of |
---|---|---|
Win 7, FF 18, JAWS 14 | supported |
JAWS speaks content of Seems a bit buggy though - sometimes after displaying div JAWS keeps announcing Display a div box - visited link". |
Win 7, IE9, NVDA 2012.2.1 | supported - buggy? |
NVDA content of (If anyone can explain this behaviour or point out why the example may be at fault, I'll update the result.) |
Win 7, FF 13, NVDA 2012.2.1 | not-supported |
NVDA does not speak |
Win XP, IE 8, SaToGo | not supported | System Access SaToGo ignores |
Mac OS 10.6.8, VoiceOver | Supported | In contrast to VoiceOver on iOS, VoiceOver on OS X supports |
iOS 6.1, VoiceOver (iPad mini) | not supported |
|
Android 4.2, Talkback (Nexus 7) | not supported |
|