SlideShare a Scribd company logo
1 of 161
Download to read offline
wai-aria
ANINTRODUCTIONTO ACCESSIBLERICHINTERNETAPPLICATIONS
Patrick H. Lauke / The Paciello Group / AccessU / 15 May 2018
what is ARIA
and why do we need it ?
the problem
it's "easy" (in most cases) to make static web content accessible, but
nowadays the web strives to be an application platform
complex web applications require structures (e.g. interactive
controls) that go beyond what regular HTML offers (though some of
this introduced with HTML5 ... more on that later)
jQuery UI
Polymer Project
the problem
when building interactive controls, some (too many) web developers
go "all out" on the JavaScript/CSS, but ignore/sidestep regular HTML
controls completely
code examples here are
simplified
(but will hopefully convey the right concepts)
<div onclick="...">Test</div>
faked button
for a sighted mouse / touchscreen user this is a button...
but what about keyboard users?
<div tabindex="0" onclick="...">Test</div>
faked button with focus
now we can at least focus it... but can we activate it?
<div tabindex="0" onkeyup="..." onclick="...">Test</div>
faked button with focus and keyboard handling
for a sighted mouse / touchscreen / keyboard user this is a button...
but what about assistive technology users?
compare <div> to a real <button>
faked button versus real <button>
"test"
versus
"test button – to activate press
SPACE bar"
the problem
generic/inappropriate HTML elements, with extra JavaScript/CSS on
top...but they're still recognised and exposed as <span> , <div> , etc
the interplay of browser and
assistive technology
Operating systems and other platforms provide interfaces that expose
information about objects and events to assistive technologies
Java Accessibility API [JAPI], Microsoft Active Accessibility [MSAA], the Mac OS X
Accessibility Protocol [AXAPI], the Gnome Accessibility Toolkit (ATK) [ATK], and
IAccessible2 [IA2]
Marco Zehe: Why accessibility APIs matter
assistive technologies
assistive technologies
•   NVDA (free)
•   Narrator (free)
•   JAWS
•   ZoomText
•   Dragon NaturallySpeaking
•   VoiceOver (free)
•   TalkBack (free)
•   ...
inspection tools
inspection tools
test using assistive technologies (e.g. screenreaders), however...
assistive technologies often use heuristics to repair
incomplete/broken accessibility API information - so we want to
check what's actually exposed to the OS/platform.
of course, browsers also have bugs/incomplete support...
Firefox Accessibility Inspector (version 61+)
(enable devtools.accessibility.enabled in about:config )
chrome://accessibility view of the raw accessibility tree
Accessibility Viewer (aViewer)
James Craig - Using ARIA 1.0 and the WebKit Accessibility Node
Inspector
Xcode Accessibility Inspector
(but for Chrome, remember to turn on accessibility mode in chrome://accessibility)
compare <div> to a real <button>
faked button versus real <button>
if you use custom (not
standard HTML) widgets,
use ARIA to ensure correct info
is exposed
what is ARIA?
W3C - Accessible Rich Internet Applications (WAI-ARIA) 1.1
ARIA defines HTML attributes
to convey correct role, state,
properties and value
at a high level, ARIA defines various role and aria-* attributes that
can be added to your markup
W3C - WAI-ARIA 1.1 - 5.3 Categorization of Roles
the whole model is vast and complex...and thankfully you don't need
to remember this
Roles are categorized as follows:
•    Abstract Roles: never used in markup directly - they serve only for
the categorization/definitions
•    Widget Roles: interactive controls - simple or composite (made up of
various components)
•    Document Structure Roles: define what content/structures represent
(e.g. headings, lists, groups)
•    Landmark Roles: identify key parts of a document/page
•    Live Region Roles: special areas of the page whose content is
dynamically updated and should be announced by AT
•    Window Roles: content that acts as a separate window (dialogs)
each role has "states and properties" (e.g. ARIA 1.1 definition for button )
implicit/inherited or defined via aria-* attributes
this is all complex and
confusing...
as my former colleague Karl Groves succintly put it,
ARIA helps answer the questions:
what is this thing and what does it do?
what information does ARIA provide?
•    role: what type of "thing" is this? (e.g. 'button', 'main content')
•    state: what is its situation? (e.g. 'disabled', 'checked', 'expanded')
•    name: what is its name/label?
•    relationship: is it tied to any other elements in the page somehow?
this information is mapped by the browser to the operating system's
accessibility API and exposed to assistive technologies.
extra benefit: once AT understands meaning/purpose, it can
automatically announce specific hints and prompts
(e.g. JAWS "... button - to activate, press SPACE bar")
<div tabindex="0"
role="button" onkeyup="..."
onclick="...">Test</div>
faked button with appropriate role
use ARIA to:
•   make custom widgets understandable to assistive technology users
•   programmatically indicate relationships between elements
•   notify users of dynamic updates
•   hide irrelevant visible content from assistive technology
•   remediation of inaccessible content without completely recoding
ARIA roles and attributes: restrictions
•   certain role s only make sense as part of a specific complex widget
•   some aria-* attributes are global
•   other aria-* attributes only make sense for particular role
•   not all roles/attributes are supported/implemented consistently
everywhere
what ARIA doesn't do...
ARIA is not magic : it only changes how assistive technology
interprets content. specifically, ARIA does not :
•   make an element focusable
•   provide appropriate keyboard bindings
•   change browser behavior
•   automatically maintain/update properties
•   change visible appearance
all of this is still your responsibility...
ARIA support
•   Browsers: Firefox 3+, Internet Explorer 8+, Safari 4+ (Mac), Chrome 17+,
...
•   Assistive technologies: JAWS 8+, Windows Eyes 5.5+, ZoomText,
VoiceOver, TalkBack, NVDA, ORCA, ...
"support" does not mean that
everything works, though...
in principle ARIA can be used
in all markup languages
(depending on browser support )
Using ARIA to enhance SVG accessibility
...but we'll just focus on
ARIA in HTML
W3C - ARIA in HTML
W3C - Using ARIA
the 5 rules of ARIA use
1. don't use ARIA
If you can use a native HTML element [HTML5] or attribute with the
semantics and behaviour you require already built in, instead of re-
purposing an element and adding an ARIA role, state or property to
make it accessible, then do so.
“
you can use a <span> to behave as, and be exposed just like, a link...
<span tabindex="0" role="link"
onclick="document.location='...'"
onkeyup="..." >link</span>
example: link
...but why would you?
unless there's a very good reason, just use <a href="...">...</a>
2. don't change native
semantics
unless you really have to / know what you're doing
don't do this:
<h1 role="button">heading button</h1>
do this instead:
<h1><span role="button">heading button</span></h1>
otherwise the heading is no longer a heading
(e.g. AT users can't navigate to it quickly)
don't do this:
<ul role="navigation">
<li><a href="...">...</a></li>
...
</ul>
do this instead:
<div role="navigation">
<ul>
<li><a href="...">...</a></li>
...
</ul>
</div>
otherwise the list is no longer a list
(e.g. AT won't announce "list with X items...")
3. make interactive ARIA
controls keyboard accessible
All interactive widgets must be focusable and scripted to respond to
standard key strokes or key stroke combinations where applicable. [...]
Refer to the keyboard and structural navigation and design patterns
and widgets sections of the WAI-ARIA 1.1 Authoring Practices
4. don't "neutralise" focusable
elements
don't use role="presentation" or aria-hidden="true" on a visible
focusable element. Otherwise, users will navigate/focus onto
"nothing".
<!-- don't do this... -->
<button role="presentation">press me</button>
<button aria-hidden="true">press me</button>
<span tabindex="0" aria-hidden="true">...</span>
5. interactive elements must
have an accessible name
<!-- don't do this... -->
<span tabindex="0" role="button">
<span class="glyphicon glyphicon-remove"></span>
</span>
<span tabindex="0" role="button">
<span class="glyphicon glyphicon-remove">
<span class="...">Delete</span>
</span>
</span>
<span tabindex="0" role="button" title="Delete" >
<span class="glyphicon glyphicon-remove"></span>
</span>
refer to WAI-ARIA 1.1 - 5.2.7. Accessible Name Calculation
<span tabindex="0" role="button" aria-label="Delete" >
<span class="glyphicon glyphicon-remove"></span>
</span>
<span tabindex="0" role="button" aria-labelledby="..." >
<span class="glyphicon glyphicon-remove"></span>
</span>
...
<span id=" ... " class="...">Delete</span>
refer to WAI-ARIA 1.1 - 5.2.7. Accessible Name Calculation
Chrome DevTools' accessibility panel can help understand which
attributes contribute to an element's name (example)
WAI-ARIA spec can be dry/technical - use for reference
W3C - WAI-ARIA 1.1 Authoring Practices more digestible.
ARIA and HTML5
ARIA is used when
building/denoting things that
native HTML can't do
HTML5 introduced new
elements, element types,
attributes that solve some of
these situations
example: HTML5 slider
W3C HTML Accessibility API Mappings 1.0
HTML5 accessibility
HTML5 now also includes WAI-ARIA ...
...and you can validate pages with (static) ARIA validator.w3.org
common structures and widgets
(not an exhaustive list - enough to understand concepts)
using ARIA to provide
structure
<p class="1" role="heading" aria-level="1" >Heading 1</p>
...
<p class="h2" role="heading" aria-level="2" >Heading 2</p>
...
<p class="h3" role="heading" aria-level="3" >Heading 3</p>
...
example: headings
•   add role="heading"
•   if more than one hierarchical level, and can't be inferred from
structure, add explicit aria-level
<div role="list" >
<div role="listitem" >...</div>
<div role="listitem" >...</div>
<div role="listitem" >...</div>
...
</div>
example: list/listitem
•   add role="list" and role="listitem"
•   generally more complex (big markup structures that boil down to
essentially "a list of things...")
removing semantics
if your page/app uses inappropriate markup, ARIA can be used to
remove semantic meaning. useful for remediation if markup cannot
be changed.
<table role="presentation" >
<tr>
<td>Layout column 1</td>
<td>Layout column 2</td>
</tr>
</table>
example: layout table remediation
ARIA 1.1 introduced role="none" as an alias for
role="presentation" – they are equivalent (and older browsers/AT
likely better off still using role="presentation" )
landmarks
adapted from HTML5 Doctor - Designing a blog with html5
example: blog structure
why define landmarks?
•   users of assistive technologies can more easily find areas of your
page/app
•   AT keyboard controls to navigate to/between landmarks
•   overview dialogs listing all landmarks (e.g. NVDA)
example: blog structure with ARIA
doesn't HTML5 solve this?
adapted from HTML5 Doctor - Designing a blog with html5
example: blog structure with HTML5
using ARIA for
simple/standalone widgets
my JavaScript sucks...
(but will hopefully convey the right concepts)
button
<span class="...">Button?</span>
<div class="...">Button?</div>
<a href="#" class="...">Button?</a>
example: button
while using a link is slightly less evil, as at least it receives keyboard
focus by default, it's still not correct: links are meant for navigation ,
not in-page actions or form submissions
<span tabindex="0" class="..." role="button" >Button!</span>
<div tabindex="0" class="..." role="button" >Button!</div>
<a href="#" class="..." role="button" >Button!</a>
•   add role="button"
•   make sure it's focusable
•   add handling of SPACE (and in some cases ENTER )
assuming there's a click handler:
foo.addEventListener('keyup', function(e) {
// Space key
if (e.keyCode === 32) {
// stop default behavior (usually, scrolling)
e.preventDefault();
// trigger the existing click behavior
this.click();
}
});
you could even do it "in one go" for all your faked buttons, assuming
they have the correct role="button" , with querySelectorAll and
attribute selectors:
var buttons = document.querySelectorAll("[role='button']");
for (var i=0; i<buttons.length; i++) {
buttons[i].addEventListener('keyup', function(e) {
if (e.keyCode === 32) {
e.preventDefault();
this.click();
}
});
}
toggle button
•   default HTML does not offer a simple on/off toggle
•   "CSS only" <input type="checkbox"> hacks – but these may be
confusing to AT users/not always appropriate
•   ARIA can be used to enhance native elements – start off with closest
match, like an actual <button> , and extend from there
let's assume we implement this with JavaScript to purely add a CSS
classname:
<button class="...">Toggle</button>
<button class="... toggled ">Toggle</button>
example: toggle
in real applications, you'll likely keep track of the state in some additional way –
this is only for illustrative purposes
<button class="..." aria-pressed="false" >Toggle</button>
<button class="... toggled " aria-pressed="true" >Toggle</button>
foo.getAttribute("aria-pressed");
foo.setAttribute("aria-pressed", "true");
foo.setAttribute("aria-pressed", "false");
add aria-pressed and dynamically change its value
example: toggle with aria-pressed
•   these are HTML attributes and must be read/written using
getAttribute() / setAttribute()
•   and even boolean attributes take string values
<button class="... " aria-pressed="true" >Toggle</button>
button[aria-pressed="true"] { ... }
•   bonus: use CSS attribute selectors – no need for extra CSS class (this
also helps debugging – easier to spot visually when ARIA
roles/properties aren't correctly set)
example: toggle with aria-pressed and simplified CSS
toggled
button.toggled { ... }
if your actual label text changes when toggling, aria-pressed is
likely not necessary (could actually be more confusing for user)
<button ...>Mute</button>
if (...) {
this.innerHTML = "Mute";
...
} else {
this.innerHTML = "Unmute";
...
}
example: toggle with a changing name/label
checkbox
<span tabindex="0" class="...">Option</span>
<span tabindex="0" class="... checked">Option</span>
example: checkbox
<span tabindex="0" role="checkbox"
aria-checked="false" class="...">Option</span>
<span tabindex="0" role="checkbox"
aria-checked="true" class="... checked">Option</span>
•   add role="checkbox"
•   make sure it's focusable
•   add handling of SPACE
•   add aria-checked and dynamically change its value
example: checkbox with aria-checked
radio button
<span tabindex="0" class="...">Yes</span>
<span tabindex="0" class="... selected">No</span>
<span tabindex="0" class="...">Maybe</span>
example: radio button
<span tabindex="0" role="radio"
aria-checked="false" class="...">Yes</span>
<span tabindex="0" role="radio"
aria-checked="true" class="... selected">No</span>
<span tabindex="0" role="radio"
aria-checked="false" class="...">Maybe</span>
•   add role="radio"
•   add handling of SPACE and cursor keys
•   add aria-checked and dynamically change its value
•   should be contained inside role="radiogroup" (cfr. <fieldset> )
example: radio button with ARIA (but note incomplete focus handling)
disclosure widget
<button ...>More details</button>
<div class="show" ...> ... </div>
example: disclosure widget
<button ... aria-expanded="true"
aria-controls="disclosure1" >More details</button>
<div class="show" ... id="disclosure1"> ... </div>
example: disclosure widget with aria-expanded / aria-controls
accordion
•   ARIA Practices 1.0 suggested using a tab panel pattern (we'll briefly
look at this in a moment)
•   ARIA Practices 1.1 is more pragmatic: an accordion is seen simply as a
series of disclosure widgets (see ARIA Practices 1.1 - 3.1 Accordion)
<button ... aria-expanded="true"
aria-controls="accordion1" >Item 1</button>
<div class="show" ... id="accordion1"> ... </div>
<button ... aria-expanded="false"
aria-controls="accordion2" >Item 2</button>
<div class="show" ... id="accordion2"> ... </div>
<button ... aria-expanded="false"
aria-controls="accordion3" >Item 3</button>
<div class="show" ... id="accordion3"> ... </div>
example: accordion using disclosure widgets
modal dialog
<button>Launch...</button>
...
<div ... >
<div>My custom dialog</div>
...
</div>
example: modal dialog
...but focus handling is not really correct...
•   when triggered, focus should move to the dialog
•   focus should be maintained inside the dialog
example: modal dialog with focus management
...but for assistive tech users, it's still not clear what is happening...
<button>Launch...</button>
...
<div role="dialog"
aria-labelledby="dialog-header"
aria-describedby="modalDialogDescription" ... >
<div id="modalDialogHeader">My custom dialog</div>
<div id="modalDialogDescription">
...
</div>
...
</div>
example: modal dialog with focus management and ARIA
...almost perfect, but assistive tech users can still navigate out of the
modal...
<div id="wrapper">>
<button>Launch...</button>
</div>
...
<div role="dialog" ...</div>
function openModal() {
document.getElementById("wrapper").setAttribute("aria-hidden","true"
...
}
function closeModal() {
document.getElementById("wrapper").removeAttribute("aria-hidden");
...
}
example: modal dialog with aria-hidden
note: aria-hidden does not prevent regular keyboard focus!
function openModal() {
document.getElementById("wrapper").setAttribute("inert","");
...
}
function closeModal() {
document.getElementById("wrapper").removeAttribute("inert");
...
}
example: modal dialog with inert
note: inert does hide elements from accessibility tree and remove
behavior such as keyboard focusability. however, not natively
supported yet – use the inert polyfill
<button>Launch...</button>
...
<div role="dialog" aria-modal="true"
aria-labelledby="dialog-header"
aria-describedby="modalDialogDescription" ... >
<div id="modalDialogHeader">My custom dialog</div>
<div id="modalDialogDescription">
...
</div>
...
</div>
example: modal dialog with aria-modal (new in ARIA 1.1)
...but you still need to do the focus management yourself...
managing focus
complex widgets and focus
•   some complex widgets (group of radio buttons, menus, listboxes, tab
lists) only have a single "tab stop"
•   focus/interactions within the widget are handled programmatically
•    TAB / SHIFT + TAB moves to the next widget, not to sub-components
keyboard navigation within widgets
•   either: "roving" tabindex (only one element inside widget has
tabindex="0" , all others tabindex="-1" )
•   or: focus remains on widget itself, denote active child element with
aria-activedescendant (and manually scroll into view, provide
highlight via CSS)
W3C WAI-ARIA 1.1 Authoring Practices - 5.6 Keyboard Navigation
Inside Components
<span tabindex="-1" role="radio"
aria-checked="false" class="...">Yes</span>
<span tabindex="0" role="radio"
aria-checked="true" class="... selected">No</span>
<span tabindex="-1" role="radio"
aria-checked="false" class="...">Maybe</span>
only one radio button inside the group has focus. changing the
selection using CURSOR keys, dynamically changes tabindex , aria-
checked and sets focus() on the newly selected radio button
example: ARIA Practices 1.1 - Radio Group Using Roving tabindex
not all complex widgets lend themselves to "roving" tabindex – e.g.
role="combobox" needs aria-activedescendant , as actual focus
must remain inside the textbox.
example: ARIA Practices 1.1 Combobox with Listbox Popup
this approach can be complex, and not always supported by assistive
technologies (particularly on mobile).
live regions
making assistive technology
aware of content changes
<div id="output"></div>
var o = document.getElementById("output");
o.innerHTML = "Surprise!"; // show the notification
example: notification as result of button press
but how can AT users be made aware of the notification / content
change?
one way to notify users of assistive technologies of new content (a
new element added to the page, made visible, a change in text) is to
move focus() programmatically to it
<div id="output" tabindex="-1" ></div>
var o = document.getElementById("output");
o.innerHTML = "Surprise!"; // show the notification
o.focus(); // move focus to the notification
but this is not always possible, as it would interrupt the user's current
actions...
example: notification via focus() and a more problematic example
simulating a long-running function.
ARIA live regions
•   announce a change on content without moving focus to it
•    aria-live : off (default), polite , assertive
<div id="output" aria-live="polite" ></div>
var o = document.getElementById("output");
o.innerHTML = "Surprise!"; // show the notification
example: notification via aria-live
bonus points: set aria-disabled="true" on the control, and
optionally aria-busy="true" on the notification / section of the page
that is getting updated. see notification via aria-live , with aria-
busy and aria-disabled
•   some role s have implicit live region (e.g. role="status" and
role="alert" ), as do some markup elements (e.g. <output> )
<span role="status" >
some form of status bar message...
</span>
example: status bar
<span role="alert" >
an alert message (no user interaction)
</span>
example: alert
ARIA live regions need to be "primed" first – the browser and AT need
to realize there's a live region, and start watching for changes.
•   sending something with role="alert" as part of your static HTML
document has no effect – AT won't announce this when the page is
loading
•   creating a dynamic element with aria-live="..." or an implicit
live region role and filling it with content right away will (depending
on timing) usually not give browser/AT enough time to "see" the
element and notice the change ... again resulting in no announcement
// create a new div element
var newDiv = document.createElement("div");
// set aria-live property
newDiv.setAttribute("aria-live", "polite");
// and give it some content
var newContent = document.createTextNode("Surprise!");
// add the text node to the newly created div
newDiv.appendChild(newContent);
// add the new div to the page
document.body.appendChild(newDiv);
// ... WON'T ACTUALLY WORK
by default, live regions only announce any new/changed content.
however, this can be controlled:
•    aria-atomic : true / false ("treat the live region as one atomic unit
and announce everything")
example: live region clock and live region clock with aria-atomic
(there's also aria-relevant , but it is badly supported/pointless - see Aaron
Leventhal and Rob Dodson: Why authors should avoid aria-relevant).
ARIA has many more
complex/composite widgets and
structures
example:
tab panels
<div role="tablist" ...>
<div role="tab" aria-controls="panel1"
aria-selected="true" ...>Tab 1</div>
<div role="tab" aria-controls="panel2" ...>Tab 2</div>
<div role="tab" aria-controls="panel3" ...>Tab 2</div>
</div>
<div role="tabpanel" id="panel1" aria-hidden="false" >...</div>
<div role="tabpanel" id="panel2" aria-hidden="true" >...</div>
<div role="tabpanel" id="panel3" aria-hidden="true" >...</div>
example: ARIA Practices 1.1 Tabs with Automatic Activation
variations on this theme: Marco Zehe - Advanced ARIA tip #1: Tabs in
web apps
not appropriate if you're just marking up a site navigation...
some shortcomings / problems
with ARIA
as useful as ARIA is, it is far from perfect ...
•   some patterns rooted deeply in native (Windows) application
paradigms – and as a result, quite limited/restrictive
•   straying from these patterns / using ARIA incorrectly can make
things worse for users
•   certain roles/patterns define specific keyboard interactions – but
work badly or not at all in touchscreen + AT scenarios
•   particularly for new roles/attributes (ARIA 1.1) and complex patterns,
browser and AT support may be lacking
example:
menu/menubar
<div role="menubar" >
<div role="menuitem" ...> ...
<div role="menu" </div>
<div role="menuitem" ...>...</div>
<div role="menuitem" ...>...</div>
<div role="menuitem" ...>...</div>
...
</div>
</div>
...
</div>
example: ARIA Practices 1.1 Navigation Menubar
most suitable for real "application-like" web-apps - arguably not
appropriate for general "website navigation"
ARIA 1.1 menu (role)
specific child elements only ( menuitem , menuitemcheckbox , menuitemradio )
Using ARIA - 2.15 ARIA Design Patterns and Touch Device Support
ARIA Practices 1.1 - Horizontal Slider on Android / Chrome / TalkBack
(use volume keys...)
ARIA Practices 1.1 - Horizontal Slider on iOS / Safari / VoiceOver
(swipe up or down...)
ARIA Practices 1.1 - Combobox with Listbox Popup
on Android / Chrome / TalkBack
ARIA Practices 1.1 - Combobox with Listbox Popup
on iOS / Safari / VoiceOver
frameworks, web components,
angular, etc?
•   not everybody codes their complex applications from scratch using
hand-made HTML/JavaScript/CSS
•   many ready-made libraries, scripts and frameworks offer at least
basic ARIA support (by default, or as an "optional" setting or module)
•   particularly open source projects offer good opportunities to get
involved – file issues, submit pull requests, improve documentation
•   lack of accessibility/ARIA support likely not down to malice, but a
lack of knowledge or even understanding of the problem...
Bootstrap - Accessibility
AngularJS Developer Guide - Accessibility with ngAria
recap...
ARIA is not a magic bullet
what ARIA is/isn't ...
•   ARIA conveys "what is this thing and what does it do?" to assistive
technologies
•   ARIA does not influence browser behavior itself – you need to manage
keyboard handling, state, etc. yourself
•   ARIA is vast and complex, depends on browser/AT support, has
shortcomings
pragmatic approach to using ARIA
•   understand/break-up complex app into simple component elements
•   you don't always need ARIA – appropriate HTML usually best
•   No ARIA is better than Bad ARIA
•   consult ARIA Practices to see if they match an existing pattern
•   follow the rules of ARIA
•   check main ARIA specification for correct syntax, expected attributes,
valid values
•   test in actual browser/AT
get in touch
@patrick_h_lauke
github.com/patrickhlauke/aria
paciellogroup.com
splintered.co.uk

More Related Content

Similar to An Introduction to Accessible Rich Internet Applications (ARIA

WAI-ARIA An introduction to Accessible Rich Internet Applications / JavaScrip...
WAI-ARIA An introduction to Accessible Rich Internet Applications / JavaScrip...WAI-ARIA An introduction to Accessible Rich Internet Applications / JavaScrip...
WAI-ARIA An introduction to Accessible Rich Internet Applications / JavaScrip...Patrick Lauke
 
WAI-ARIA An introduction to Accessible Rich Internet Applications / CSS Minsk...
WAI-ARIA An introduction to Accessible Rich Internet Applications / CSS Minsk...WAI-ARIA An introduction to Accessible Rich Internet Applications / CSS Minsk...
WAI-ARIA An introduction to Accessible Rich Internet Applications / CSS Minsk...Patrick Lauke
 
WAI-ARIA - an introduction to accessible rich internet applications (1 day wo...
WAI-ARIA - an introduction to accessible rich internet applications (1 day wo...WAI-ARIA - an introduction to accessible rich internet applications (1 day wo...
WAI-ARIA - an introduction to accessible rich internet applications (1 day wo...Patrick Lauke
 
Accessibility of HTML5 and Rich Internet Applications - CSUN 2012
Accessibility of HTML5 and Rich Internet Applications - CSUN 2012Accessibility of HTML5 and Rich Internet Applications - CSUN 2012
Accessibility of HTML5 and Rich Internet Applications - CSUN 2012Steven Faulkner
 
An Introduction to WAI-ARIA
An Introduction to WAI-ARIAAn Introduction to WAI-ARIA
An Introduction to WAI-ARIAIWMW
 
Accessible web applications
Accessible web applications Accessible web applications
Accessible web applications Steven Faulkner
 
ARIA and JavaScript Accessibility
ARIA and JavaScript AccessibilityARIA and JavaScript Accessibility
ARIA and JavaScript AccessibilityPaul Bohman
 
Accessibility: A Journey to Accessible Rich Components
Accessibility: A Journey to Accessible Rich ComponentsAccessibility: A Journey to Accessible Rich Components
Accessibility: A Journey to Accessible Rich ComponentsAchievers Tech
 
Web Accessibility - We're All In This Together!
Web Accessibility - We're All In This Together!Web Accessibility - We're All In This Together!
Web Accessibility - We're All In This Together!Andrew Ronksley
 
Too much accessibility: Good intentions, badly implemented
Too much accessibility: Good intentions, badly implementedToo much accessibility: Good intentions, badly implemented
Too much accessibility: Good intentions, badly implementedGabriel Porras
 
HTML5 Accessibility - Is it ready yet?
HTML5 Accessibility - Is it ready yet?HTML5 Accessibility - Is it ready yet?
HTML5 Accessibility - Is it ready yet?Steven Faulkner
 
Dynamic and accessible web content with WAI-ARIA
Dynamic and accessible web content with WAI-ARIADynamic and accessible web content with WAI-ARIA
Dynamic and accessible web content with WAI-ARIAAccess iQ
 
The Inclusive Web: hands-on with HTML5 and jQuery
The Inclusive Web: hands-on with HTML5 and jQueryThe Inclusive Web: hands-on with HTML5 and jQuery
The Inclusive Web: hands-on with HTML5 and jQuerycolinbdclark
 
CSUN The ARIA Technology Stack Browsers and Screen Readers
CSUN The ARIA Technology Stack Browsers and Screen ReadersCSUN The ARIA Technology Stack Browsers and Screen Readers
CSUN The ARIA Technology Stack Browsers and Screen ReadersEduardo Meza-Etienne
 
aria-live: the good, the bad and the ugly
aria-live: the good, the bad and the uglyaria-live: the good, the bad and the ugly
aria-live: the good, the bad and the uglyRuss Weakley
 
Too much accessibility - good intentions, badly implemented / Public Sector F...
Too much accessibility - good intentions, badly implemented / Public Sector F...Too much accessibility - good intentions, badly implemented / Public Sector F...
Too much accessibility - good intentions, badly implemented / Public Sector F...Patrick Lauke
 
GUI (graphical user interface)
GUI (graphical user interface)GUI (graphical user interface)
GUI (graphical user interface)rishi ram khanal
 
The Recipe for Making Accessible Widgets!
The Recipe for Making Accessible Widgets!The Recipe for Making Accessible Widgets!
The Recipe for Making Accessible Widgets!Rabab Gomaa
 
Slot04 creating gui
Slot04 creating guiSlot04 creating gui
Slot04 creating guiViên Mai
 
Intro to Web Accessibility: Koombea TechTalks
Intro to Web Accessibility: Koombea TechTalksIntro to Web Accessibility: Koombea TechTalks
Intro to Web Accessibility: Koombea TechTalksKoombea
 

Similar to An Introduction to Accessible Rich Internet Applications (ARIA (20)

WAI-ARIA An introduction to Accessible Rich Internet Applications / JavaScrip...
WAI-ARIA An introduction to Accessible Rich Internet Applications / JavaScrip...WAI-ARIA An introduction to Accessible Rich Internet Applications / JavaScrip...
WAI-ARIA An introduction to Accessible Rich Internet Applications / JavaScrip...
 
WAI-ARIA An introduction to Accessible Rich Internet Applications / CSS Minsk...
WAI-ARIA An introduction to Accessible Rich Internet Applications / CSS Minsk...WAI-ARIA An introduction to Accessible Rich Internet Applications / CSS Minsk...
WAI-ARIA An introduction to Accessible Rich Internet Applications / CSS Minsk...
 
WAI-ARIA - an introduction to accessible rich internet applications (1 day wo...
WAI-ARIA - an introduction to accessible rich internet applications (1 day wo...WAI-ARIA - an introduction to accessible rich internet applications (1 day wo...
WAI-ARIA - an introduction to accessible rich internet applications (1 day wo...
 
Accessibility of HTML5 and Rich Internet Applications - CSUN 2012
Accessibility of HTML5 and Rich Internet Applications - CSUN 2012Accessibility of HTML5 and Rich Internet Applications - CSUN 2012
Accessibility of HTML5 and Rich Internet Applications - CSUN 2012
 
An Introduction to WAI-ARIA
An Introduction to WAI-ARIAAn Introduction to WAI-ARIA
An Introduction to WAI-ARIA
 
Accessible web applications
Accessible web applications Accessible web applications
Accessible web applications
 
ARIA and JavaScript Accessibility
ARIA and JavaScript AccessibilityARIA and JavaScript Accessibility
ARIA and JavaScript Accessibility
 
Accessibility: A Journey to Accessible Rich Components
Accessibility: A Journey to Accessible Rich ComponentsAccessibility: A Journey to Accessible Rich Components
Accessibility: A Journey to Accessible Rich Components
 
Web Accessibility - We're All In This Together!
Web Accessibility - We're All In This Together!Web Accessibility - We're All In This Together!
Web Accessibility - We're All In This Together!
 
Too much accessibility: Good intentions, badly implemented
Too much accessibility: Good intentions, badly implementedToo much accessibility: Good intentions, badly implemented
Too much accessibility: Good intentions, badly implemented
 
HTML5 Accessibility - Is it ready yet?
HTML5 Accessibility - Is it ready yet?HTML5 Accessibility - Is it ready yet?
HTML5 Accessibility - Is it ready yet?
 
Dynamic and accessible web content with WAI-ARIA
Dynamic and accessible web content with WAI-ARIADynamic and accessible web content with WAI-ARIA
Dynamic and accessible web content with WAI-ARIA
 
The Inclusive Web: hands-on with HTML5 and jQuery
The Inclusive Web: hands-on with HTML5 and jQueryThe Inclusive Web: hands-on with HTML5 and jQuery
The Inclusive Web: hands-on with HTML5 and jQuery
 
CSUN The ARIA Technology Stack Browsers and Screen Readers
CSUN The ARIA Technology Stack Browsers and Screen ReadersCSUN The ARIA Technology Stack Browsers and Screen Readers
CSUN The ARIA Technology Stack Browsers and Screen Readers
 
aria-live: the good, the bad and the ugly
aria-live: the good, the bad and the uglyaria-live: the good, the bad and the ugly
aria-live: the good, the bad and the ugly
 
Too much accessibility - good intentions, badly implemented / Public Sector F...
Too much accessibility - good intentions, badly implemented / Public Sector F...Too much accessibility - good intentions, badly implemented / Public Sector F...
Too much accessibility - good intentions, badly implemented / Public Sector F...
 
GUI (graphical user interface)
GUI (graphical user interface)GUI (graphical user interface)
GUI (graphical user interface)
 
The Recipe for Making Accessible Widgets!
The Recipe for Making Accessible Widgets!The Recipe for Making Accessible Widgets!
The Recipe for Making Accessible Widgets!
 
Slot04 creating gui
Slot04 creating guiSlot04 creating gui
Slot04 creating gui
 
Intro to Web Accessibility: Koombea TechTalks
Intro to Web Accessibility: Koombea TechTalksIntro to Web Accessibility: Koombea TechTalks
Intro to Web Accessibility: Koombea TechTalks
 

More from Patrick Lauke

These (still) aren't the SCs you're looking for ... (mis)adventures in WCAG 2...
These (still) aren't the SCs you're looking for ... (mis)adventures in WCAG 2...These (still) aren't the SCs you're looking for ... (mis)adventures in WCAG 2...
These (still) aren't the SCs you're looking for ... (mis)adventures in WCAG 2...Patrick Lauke
 
Pointer Events Working Group update / TPAC 2023 / Patrick H. Lauke
Pointer Events Working Group update / TPAC 2023 / Patrick H. LaukePointer Events Working Group update / TPAC 2023 / Patrick H. Lauke
Pointer Events Working Group update / TPAC 2023 / Patrick H. LaukePatrick Lauke
 
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...Patrick Lauke
 
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...Patrick Lauke
 
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...Patrick Lauke
 
Evaluating web sites for accessibility with Firefox / Manchester Digital Acce...
Evaluating web sites for accessibility with Firefox / Manchester Digital Acce...Evaluating web sites for accessibility with Firefox / Manchester Digital Acce...
Evaluating web sites for accessibility with Firefox / Manchester Digital Acce...Patrick Lauke
 
Managing and educating content editors - experiences and ideas from the trenc...
Managing and educating content editors - experiences and ideas from the trenc...Managing and educating content editors - experiences and ideas from the trenc...
Managing and educating content editors - experiences and ideas from the trenc...Patrick Lauke
 
Implementing Web Standards across the institution: trials and tribulations of...
Implementing Web Standards across the institution: trials and tribulations of...Implementing Web Standards across the institution: trials and tribulations of...
Implementing Web Standards across the institution: trials and tribulations of...Patrick Lauke
 
Geolinking content - experiments in connecting virtual and physical places / ...
Geolinking content - experiments in connecting virtual and physical places / ...Geolinking content - experiments in connecting virtual and physical places / ...
Geolinking content - experiments in connecting virtual and physical places / ...Patrick Lauke
 
All change for WCAG 2.0 - what you need to know about the new accessibility g...
All change for WCAG 2.0 - what you need to know about the new accessibility g...All change for WCAG 2.0 - what you need to know about the new accessibility g...
All change for WCAG 2.0 - what you need to know about the new accessibility g...Patrick Lauke
 
Web Accessibility - an introduction / Salford Business School briefing / Univ...
Web Accessibility - an introduction / Salford Business School briefing / Univ...Web Accessibility - an introduction / Salford Business School briefing / Univ...
Web Accessibility - an introduction / Salford Business School briefing / Univ...Patrick Lauke
 
Doing it in style - creating beautiful sites, the web standards way / WebDD /...
Doing it in style - creating beautiful sites, the web standards way / WebDD /...Doing it in style - creating beautiful sites, the web standards way / WebDD /...
Doing it in style - creating beautiful sites, the web standards way / WebDD /...Patrick Lauke
 
Web standards pragmatism - from validation to the real world / Web Developers...
Web standards pragmatism - from validation to the real world / Web Developers...Web standards pragmatism - from validation to the real world / Web Developers...
Web standards pragmatism - from validation to the real world / Web Developers...Patrick Lauke
 
Ian Lloyd/Patrick H. Lauke: Accessified - practical accessibility fixes any w...
Ian Lloyd/Patrick H. Lauke: Accessified - practical accessibility fixes any w...Ian Lloyd/Patrick H. Lauke: Accessified - practical accessibility fixes any w...
Ian Lloyd/Patrick H. Lauke: Accessified - practical accessibility fixes any w...Patrick Lauke
 
The state of the web - www.salford.ac.uk / 2007
The state of the web - www.salford.ac.uk / 2007The state of the web - www.salford.ac.uk / 2007
The state of the web - www.salford.ac.uk / 2007Patrick Lauke
 
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm se...
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm se...Keyboard accessibility - just because I don't use a mouse doesn't mean I'm se...
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm se...Patrick Lauke
 
Getting touchy - an introduction to touch and pointer events / Frontend NE / ...
Getting touchy - an introduction to touch and pointer events / Frontend NE / ...Getting touchy - an introduction to touch and pointer events / Frontend NE / ...
Getting touchy - an introduction to touch and pointer events / Frontend NE / ...Patrick Lauke
 
Getting touchy - an introduction to touch and pointer events (1 day workshop)...
Getting touchy - an introduction to touch and pointer events (1 day workshop)...Getting touchy - an introduction to touch and pointer events (1 day workshop)...
Getting touchy - an introduction to touch and pointer events (1 day workshop)...Patrick Lauke
 
Getting touchy - an introduction to touch and pointer events / TPAC 2016 / Li...
Getting touchy - an introduction to touch and pointer events / TPAC 2016 / Li...Getting touchy - an introduction to touch and pointer events / TPAC 2016 / Li...
Getting touchy - an introduction to touch and pointer events / TPAC 2016 / Li...Patrick Lauke
 
Getting touchy - an introduction to touch and pointer events (1 day workshop)...
Getting touchy - an introduction to touch and pointer events (1 day workshop)...Getting touchy - an introduction to touch and pointer events (1 day workshop)...
Getting touchy - an introduction to touch and pointer events (1 day workshop)...Patrick Lauke
 

More from Patrick Lauke (20)

These (still) aren't the SCs you're looking for ... (mis)adventures in WCAG 2...
These (still) aren't the SCs you're looking for ... (mis)adventures in WCAG 2...These (still) aren't the SCs you're looking for ... (mis)adventures in WCAG 2...
These (still) aren't the SCs you're looking for ... (mis)adventures in WCAG 2...
 
Pointer Events Working Group update / TPAC 2023 / Patrick H. Lauke
Pointer Events Working Group update / TPAC 2023 / Patrick H. LaukePointer Events Working Group update / TPAC 2023 / Patrick H. Lauke
Pointer Events Working Group update / TPAC 2023 / Patrick H. Lauke
 
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
 
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
 
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
 
Evaluating web sites for accessibility with Firefox / Manchester Digital Acce...
Evaluating web sites for accessibility with Firefox / Manchester Digital Acce...Evaluating web sites for accessibility with Firefox / Manchester Digital Acce...
Evaluating web sites for accessibility with Firefox / Manchester Digital Acce...
 
Managing and educating content editors - experiences and ideas from the trenc...
Managing and educating content editors - experiences and ideas from the trenc...Managing and educating content editors - experiences and ideas from the trenc...
Managing and educating content editors - experiences and ideas from the trenc...
 
Implementing Web Standards across the institution: trials and tribulations of...
Implementing Web Standards across the institution: trials and tribulations of...Implementing Web Standards across the institution: trials and tribulations of...
Implementing Web Standards across the institution: trials and tribulations of...
 
Geolinking content - experiments in connecting virtual and physical places / ...
Geolinking content - experiments in connecting virtual and physical places / ...Geolinking content - experiments in connecting virtual and physical places / ...
Geolinking content - experiments in connecting virtual and physical places / ...
 
All change for WCAG 2.0 - what you need to know about the new accessibility g...
All change for WCAG 2.0 - what you need to know about the new accessibility g...All change for WCAG 2.0 - what you need to know about the new accessibility g...
All change for WCAG 2.0 - what you need to know about the new accessibility g...
 
Web Accessibility - an introduction / Salford Business School briefing / Univ...
Web Accessibility - an introduction / Salford Business School briefing / Univ...Web Accessibility - an introduction / Salford Business School briefing / Univ...
Web Accessibility - an introduction / Salford Business School briefing / Univ...
 
Doing it in style - creating beautiful sites, the web standards way / WebDD /...
Doing it in style - creating beautiful sites, the web standards way / WebDD /...Doing it in style - creating beautiful sites, the web standards way / WebDD /...
Doing it in style - creating beautiful sites, the web standards way / WebDD /...
 
Web standards pragmatism - from validation to the real world / Web Developers...
Web standards pragmatism - from validation to the real world / Web Developers...Web standards pragmatism - from validation to the real world / Web Developers...
Web standards pragmatism - from validation to the real world / Web Developers...
 
Ian Lloyd/Patrick H. Lauke: Accessified - practical accessibility fixes any w...
Ian Lloyd/Patrick H. Lauke: Accessified - practical accessibility fixes any w...Ian Lloyd/Patrick H. Lauke: Accessified - practical accessibility fixes any w...
Ian Lloyd/Patrick H. Lauke: Accessified - practical accessibility fixes any w...
 
The state of the web - www.salford.ac.uk / 2007
The state of the web - www.salford.ac.uk / 2007The state of the web - www.salford.ac.uk / 2007
The state of the web - www.salford.ac.uk / 2007
 
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm se...
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm se...Keyboard accessibility - just because I don't use a mouse doesn't mean I'm se...
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm se...
 
Getting touchy - an introduction to touch and pointer events / Frontend NE / ...
Getting touchy - an introduction to touch and pointer events / Frontend NE / ...Getting touchy - an introduction to touch and pointer events / Frontend NE / ...
Getting touchy - an introduction to touch and pointer events / Frontend NE / ...
 
Getting touchy - an introduction to touch and pointer events (1 day workshop)...
Getting touchy - an introduction to touch and pointer events (1 day workshop)...Getting touchy - an introduction to touch and pointer events (1 day workshop)...
Getting touchy - an introduction to touch and pointer events (1 day workshop)...
 
Getting touchy - an introduction to touch and pointer events / TPAC 2016 / Li...
Getting touchy - an introduction to touch and pointer events / TPAC 2016 / Li...Getting touchy - an introduction to touch and pointer events / TPAC 2016 / Li...
Getting touchy - an introduction to touch and pointer events / TPAC 2016 / Li...
 
Getting touchy - an introduction to touch and pointer events (1 day workshop)...
Getting touchy - an introduction to touch and pointer events (1 day workshop)...Getting touchy - an introduction to touch and pointer events (1 day workshop)...
Getting touchy - an introduction to touch and pointer events (1 day workshop)...
 

Recently uploaded

Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 

Recently uploaded (20)

Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 

An Introduction to Accessible Rich Internet Applications (ARIA

  • 1. wai-aria ANINTRODUCTIONTO ACCESSIBLERICHINTERNETAPPLICATIONS Patrick H. Lauke / The Paciello Group / AccessU / 15 May 2018
  • 2. what is ARIA and why do we need it ?
  • 3. the problem it's "easy" (in most cases) to make static web content accessible, but nowadays the web strives to be an application platform complex web applications require structures (e.g. interactive controls) that go beyond what regular HTML offers (though some of this introduced with HTML5 ... more on that later)
  • 6. the problem when building interactive controls, some (too many) web developers go "all out" on the JavaScript/CSS, but ignore/sidestep regular HTML controls completely
  • 7. code examples here are simplified (but will hopefully convey the right concepts)
  • 8. <div onclick="...">Test</div> faked button for a sighted mouse / touchscreen user this is a button... but what about keyboard users?
  • 9. <div tabindex="0" onclick="...">Test</div> faked button with focus now we can at least focus it... but can we activate it?
  • 10. <div tabindex="0" onkeyup="..." onclick="...">Test</div> faked button with focus and keyboard handling for a sighted mouse / touchscreen / keyboard user this is a button... but what about assistive technology users?
  • 11. compare <div> to a real <button> faked button versus real <button>
  • 12. "test" versus "test button – to activate press SPACE bar"
  • 13. the problem generic/inappropriate HTML elements, with extra JavaScript/CSS on top...but they're still recognised and exposed as <span> , <div> , etc
  • 14. the interplay of browser and assistive technology
  • 15. Operating systems and other platforms provide interfaces that expose information about objects and events to assistive technologies Java Accessibility API [JAPI], Microsoft Active Accessibility [MSAA], the Mac OS X Accessibility Protocol [AXAPI], the Gnome Accessibility Toolkit (ATK) [ATK], and IAccessible2 [IA2]
  • 16. Marco Zehe: Why accessibility APIs matter
  • 18. assistive technologies •   NVDA (free) •   Narrator (free) •   JAWS •   ZoomText •   Dragon NaturallySpeaking •   VoiceOver (free) •   TalkBack (free) •   ...
  • 20. inspection tools test using assistive technologies (e.g. screenreaders), however... assistive technologies often use heuristics to repair incomplete/broken accessibility API information - so we want to check what's actually exposed to the OS/platform. of course, browsers also have bugs/incomplete support...
  • 21. Firefox Accessibility Inspector (version 61+) (enable devtools.accessibility.enabled in about:config )
  • 22. chrome://accessibility view of the raw accessibility tree
  • 24. James Craig - Using ARIA 1.0 and the WebKit Accessibility Node Inspector
  • 25. Xcode Accessibility Inspector (but for Chrome, remember to turn on accessibility mode in chrome://accessibility)
  • 26. compare <div> to a real <button> faked button versus real <button>
  • 27.
  • 28.
  • 29. if you use custom (not standard HTML) widgets, use ARIA to ensure correct info is exposed
  • 31. W3C - Accessible Rich Internet Applications (WAI-ARIA) 1.1
  • 32. ARIA defines HTML attributes to convey correct role, state, properties and value
  • 33. at a high level, ARIA defines various role and aria-* attributes that can be added to your markup
  • 34. W3C - WAI-ARIA 1.1 - 5.3 Categorization of Roles the whole model is vast and complex...and thankfully you don't need to remember this
  • 35. Roles are categorized as follows: •    Abstract Roles: never used in markup directly - they serve only for the categorization/definitions •    Widget Roles: interactive controls - simple or composite (made up of various components) •    Document Structure Roles: define what content/structures represent (e.g. headings, lists, groups) •    Landmark Roles: identify key parts of a document/page •    Live Region Roles: special areas of the page whose content is dynamically updated and should be announced by AT •    Window Roles: content that acts as a separate window (dialogs)
  • 36. each role has "states and properties" (e.g. ARIA 1.1 definition for button ) implicit/inherited or defined via aria-* attributes
  • 37. this is all complex and confusing...
  • 38. as my former colleague Karl Groves succintly put it, ARIA helps answer the questions: what is this thing and what does it do?
  • 39. what information does ARIA provide? •    role: what type of "thing" is this? (e.g. 'button', 'main content') •    state: what is its situation? (e.g. 'disabled', 'checked', 'expanded') •    name: what is its name/label? •    relationship: is it tied to any other elements in the page somehow? this information is mapped by the browser to the operating system's accessibility API and exposed to assistive technologies. extra benefit: once AT understands meaning/purpose, it can automatically announce specific hints and prompts (e.g. JAWS "... button - to activate, press SPACE bar")
  • 41.
  • 42. use ARIA to: •   make custom widgets understandable to assistive technology users •   programmatically indicate relationships between elements •   notify users of dynamic updates •   hide irrelevant visible content from assistive technology •   remediation of inaccessible content without completely recoding
  • 43. ARIA roles and attributes: restrictions •   certain role s only make sense as part of a specific complex widget •   some aria-* attributes are global •   other aria-* attributes only make sense for particular role •   not all roles/attributes are supported/implemented consistently everywhere
  • 44. what ARIA doesn't do... ARIA is not magic : it only changes how assistive technology interprets content. specifically, ARIA does not : •   make an element focusable •   provide appropriate keyboard bindings •   change browser behavior •   automatically maintain/update properties •   change visible appearance all of this is still your responsibility...
  • 45. ARIA support •   Browsers: Firefox 3+, Internet Explorer 8+, Safari 4+ (Mac), Chrome 17+, ... •   Assistive technologies: JAWS 8+, Windows Eyes 5.5+, ZoomText, VoiceOver, TalkBack, NVDA, ORCA, ...
  • 46. "support" does not mean that everything works, though...
  • 47. in principle ARIA can be used in all markup languages (depending on browser support )
  • 48. Using ARIA to enhance SVG accessibility
  • 49. ...but we'll just focus on ARIA in HTML
  • 50. W3C - ARIA in HTML
  • 51. W3C - Using ARIA
  • 52. the 5 rules of ARIA use
  • 53. 1. don't use ARIA
  • 54.
  • 55. If you can use a native HTML element [HTML5] or attribute with the semantics and behaviour you require already built in, instead of re- purposing an element and adding an ARIA role, state or property to make it accessible, then do so. “
  • 56. you can use a <span> to behave as, and be exposed just like, a link... <span tabindex="0" role="link" onclick="document.location='...'" onkeyup="..." >link</span> example: link ...but why would you? unless there's a very good reason, just use <a href="...">...</a>
  • 57. 2. don't change native semantics unless you really have to / know what you're doing
  • 58. don't do this: <h1 role="button">heading button</h1> do this instead: <h1><span role="button">heading button</span></h1> otherwise the heading is no longer a heading (e.g. AT users can't navigate to it quickly)
  • 59. don't do this: <ul role="navigation"> <li><a href="...">...</a></li> ... </ul> do this instead: <div role="navigation"> <ul> <li><a href="...">...</a></li> ... </ul> </div> otherwise the list is no longer a list (e.g. AT won't announce "list with X items...")
  • 60. 3. make interactive ARIA controls keyboard accessible
  • 61. All interactive widgets must be focusable and scripted to respond to standard key strokes or key stroke combinations where applicable. [...] Refer to the keyboard and structural navigation and design patterns and widgets sections of the WAI-ARIA 1.1 Authoring Practices
  • 62. 4. don't "neutralise" focusable elements
  • 63. don't use role="presentation" or aria-hidden="true" on a visible focusable element. Otherwise, users will navigate/focus onto "nothing". <!-- don't do this... --> <button role="presentation">press me</button> <button aria-hidden="true">press me</button> <span tabindex="0" aria-hidden="true">...</span>
  • 64. 5. interactive elements must have an accessible name
  • 65. <!-- don't do this... --> <span tabindex="0" role="button"> <span class="glyphicon glyphicon-remove"></span> </span>
  • 66. <span tabindex="0" role="button"> <span class="glyphicon glyphicon-remove"> <span class="...">Delete</span> </span> </span> <span tabindex="0" role="button" title="Delete" > <span class="glyphicon glyphicon-remove"></span> </span> refer to WAI-ARIA 1.1 - 5.2.7. Accessible Name Calculation
  • 67. <span tabindex="0" role="button" aria-label="Delete" > <span class="glyphicon glyphicon-remove"></span> </span> <span tabindex="0" role="button" aria-labelledby="..." > <span class="glyphicon glyphicon-remove"></span> </span> ... <span id=" ... " class="...">Delete</span> refer to WAI-ARIA 1.1 - 5.2.7. Accessible Name Calculation
  • 68. Chrome DevTools' accessibility panel can help understand which attributes contribute to an element's name (example)
  • 69. WAI-ARIA spec can be dry/technical - use for reference W3C - WAI-ARIA 1.1 Authoring Practices more digestible.
  • 71. ARIA is used when building/denoting things that native HTML can't do
  • 72. HTML5 introduced new elements, element types, attributes that solve some of these situations
  • 74. W3C HTML Accessibility API Mappings 1.0
  • 76. HTML5 now also includes WAI-ARIA ...
  • 77. ...and you can validate pages with (static) ARIA validator.w3.org
  • 78. common structures and widgets (not an exhaustive list - enough to understand concepts)
  • 79. using ARIA to provide structure
  • 80. <p class="1" role="heading" aria-level="1" >Heading 1</p> ... <p class="h2" role="heading" aria-level="2" >Heading 2</p> ... <p class="h3" role="heading" aria-level="3" >Heading 3</p> ... example: headings •   add role="heading" •   if more than one hierarchical level, and can't be inferred from structure, add explicit aria-level
  • 81. <div role="list" > <div role="listitem" >...</div> <div role="listitem" >...</div> <div role="listitem" >...</div> ... </div> example: list/listitem •   add role="list" and role="listitem" •   generally more complex (big markup structures that boil down to essentially "a list of things...")
  • 83. if your page/app uses inappropriate markup, ARIA can be used to remove semantic meaning. useful for remediation if markup cannot be changed. <table role="presentation" > <tr> <td>Layout column 1</td> <td>Layout column 2</td> </tr> </table> example: layout table remediation ARIA 1.1 introduced role="none" as an alias for role="presentation" – they are equivalent (and older browsers/AT likely better off still using role="presentation" )
  • 85. adapted from HTML5 Doctor - Designing a blog with html5 example: blog structure
  • 86.
  • 87. why define landmarks? •   users of assistive technologies can more easily find areas of your page/app •   AT keyboard controls to navigate to/between landmarks •   overview dialogs listing all landmarks (e.g. NVDA)
  • 90. adapted from HTML5 Doctor - Designing a blog with html5 example: blog structure with HTML5
  • 91.
  • 93. my JavaScript sucks... (but will hopefully convey the right concepts)
  • 95. <span class="...">Button?</span> <div class="...">Button?</div> <a href="#" class="...">Button?</a> example: button while using a link is slightly less evil, as at least it receives keyboard focus by default, it's still not correct: links are meant for navigation , not in-page actions or form submissions
  • 96. <span tabindex="0" class="..." role="button" >Button!</span> <div tabindex="0" class="..." role="button" >Button!</div> <a href="#" class="..." role="button" >Button!</a> •   add role="button" •   make sure it's focusable •   add handling of SPACE (and in some cases ENTER )
  • 97. assuming there's a click handler: foo.addEventListener('keyup', function(e) { // Space key if (e.keyCode === 32) { // stop default behavior (usually, scrolling) e.preventDefault(); // trigger the existing click behavior this.click(); } });
  • 98. you could even do it "in one go" for all your faked buttons, assuming they have the correct role="button" , with querySelectorAll and attribute selectors: var buttons = document.querySelectorAll("[role='button']"); for (var i=0; i<buttons.length; i++) { buttons[i].addEventListener('keyup', function(e) { if (e.keyCode === 32) { e.preventDefault(); this.click(); } }); }
  • 100. •   default HTML does not offer a simple on/off toggle •   "CSS only" <input type="checkbox"> hacks – but these may be confusing to AT users/not always appropriate •   ARIA can be used to enhance native elements – start off with closest match, like an actual <button> , and extend from there
  • 101. let's assume we implement this with JavaScript to purely add a CSS classname: <button class="...">Toggle</button> <button class="... toggled ">Toggle</button> example: toggle in real applications, you'll likely keep track of the state in some additional way – this is only for illustrative purposes
  • 102. <button class="..." aria-pressed="false" >Toggle</button> <button class="... toggled " aria-pressed="true" >Toggle</button> foo.getAttribute("aria-pressed"); foo.setAttribute("aria-pressed", "true"); foo.setAttribute("aria-pressed", "false"); add aria-pressed and dynamically change its value example: toggle with aria-pressed •   these are HTML attributes and must be read/written using getAttribute() / setAttribute() •   and even boolean attributes take string values
  • 103. <button class="... " aria-pressed="true" >Toggle</button> button[aria-pressed="true"] { ... } •   bonus: use CSS attribute selectors – no need for extra CSS class (this also helps debugging – easier to spot visually when ARIA roles/properties aren't correctly set) example: toggle with aria-pressed and simplified CSS toggled button.toggled { ... }
  • 104. if your actual label text changes when toggling, aria-pressed is likely not necessary (could actually be more confusing for user) <button ...>Mute</button> if (...) { this.innerHTML = "Mute"; ... } else { this.innerHTML = "Unmute"; ... } example: toggle with a changing name/label
  • 106. <span tabindex="0" class="...">Option</span> <span tabindex="0" class="... checked">Option</span> example: checkbox
  • 107. <span tabindex="0" role="checkbox" aria-checked="false" class="...">Option</span> <span tabindex="0" role="checkbox" aria-checked="true" class="... checked">Option</span> •   add role="checkbox" •   make sure it's focusable •   add handling of SPACE •   add aria-checked and dynamically change its value example: checkbox with aria-checked
  • 109. <span tabindex="0" class="...">Yes</span> <span tabindex="0" class="... selected">No</span> <span tabindex="0" class="...">Maybe</span> example: radio button
  • 110. <span tabindex="0" role="radio" aria-checked="false" class="...">Yes</span> <span tabindex="0" role="radio" aria-checked="true" class="... selected">No</span> <span tabindex="0" role="radio" aria-checked="false" class="...">Maybe</span> •   add role="radio" •   add handling of SPACE and cursor keys •   add aria-checked and dynamically change its value •   should be contained inside role="radiogroup" (cfr. <fieldset> ) example: radio button with ARIA (but note incomplete focus handling)
  • 112. <button ...>More details</button> <div class="show" ...> ... </div> example: disclosure widget
  • 113. <button ... aria-expanded="true" aria-controls="disclosure1" >More details</button> <div class="show" ... id="disclosure1"> ... </div> example: disclosure widget with aria-expanded / aria-controls
  • 115. •   ARIA Practices 1.0 suggested using a tab panel pattern (we'll briefly look at this in a moment) •   ARIA Practices 1.1 is more pragmatic: an accordion is seen simply as a series of disclosure widgets (see ARIA Practices 1.1 - 3.1 Accordion)
  • 116. <button ... aria-expanded="true" aria-controls="accordion1" >Item 1</button> <div class="show" ... id="accordion1"> ... </div> <button ... aria-expanded="false" aria-controls="accordion2" >Item 2</button> <div class="show" ... id="accordion2"> ... </div> <button ... aria-expanded="false" aria-controls="accordion3" >Item 3</button> <div class="show" ... id="accordion3"> ... </div> example: accordion using disclosure widgets
  • 118. <button>Launch...</button> ... <div ... > <div>My custom dialog</div> ... </div> example: modal dialog ...but focus handling is not really correct...
  • 119. •   when triggered, focus should move to the dialog •   focus should be maintained inside the dialog example: modal dialog with focus management ...but for assistive tech users, it's still not clear what is happening...
  • 120. <button>Launch...</button> ... <div role="dialog" aria-labelledby="dialog-header" aria-describedby="modalDialogDescription" ... > <div id="modalDialogHeader">My custom dialog</div> <div id="modalDialogDescription"> ... </div> ... </div> example: modal dialog with focus management and ARIA ...almost perfect, but assistive tech users can still navigate out of the modal...
  • 121. <div id="wrapper">> <button>Launch...</button> </div> ... <div role="dialog" ...</div> function openModal() { document.getElementById("wrapper").setAttribute("aria-hidden","true" ... } function closeModal() { document.getElementById("wrapper").removeAttribute("aria-hidden"); ... } example: modal dialog with aria-hidden note: aria-hidden does not prevent regular keyboard focus!
  • 122. function openModal() { document.getElementById("wrapper").setAttribute("inert",""); ... } function closeModal() { document.getElementById("wrapper").removeAttribute("inert"); ... } example: modal dialog with inert note: inert does hide elements from accessibility tree and remove behavior such as keyboard focusability. however, not natively supported yet – use the inert polyfill
  • 123. <button>Launch...</button> ... <div role="dialog" aria-modal="true" aria-labelledby="dialog-header" aria-describedby="modalDialogDescription" ... > <div id="modalDialogHeader">My custom dialog</div> <div id="modalDialogDescription"> ... </div> ... </div> example: modal dialog with aria-modal (new in ARIA 1.1) ...but you still need to do the focus management yourself...
  • 125. complex widgets and focus •   some complex widgets (group of radio buttons, menus, listboxes, tab lists) only have a single "tab stop" •   focus/interactions within the widget are handled programmatically •    TAB / SHIFT + TAB moves to the next widget, not to sub-components
  • 126. keyboard navigation within widgets •   either: "roving" tabindex (only one element inside widget has tabindex="0" , all others tabindex="-1" ) •   or: focus remains on widget itself, denote active child element with aria-activedescendant (and manually scroll into view, provide highlight via CSS) W3C WAI-ARIA 1.1 Authoring Practices - 5.6 Keyboard Navigation Inside Components
  • 127. <span tabindex="-1" role="radio" aria-checked="false" class="...">Yes</span> <span tabindex="0" role="radio" aria-checked="true" class="... selected">No</span> <span tabindex="-1" role="radio" aria-checked="false" class="...">Maybe</span> only one radio button inside the group has focus. changing the selection using CURSOR keys, dynamically changes tabindex , aria- checked and sets focus() on the newly selected radio button example: ARIA Practices 1.1 - Radio Group Using Roving tabindex
  • 128. not all complex widgets lend themselves to "roving" tabindex – e.g. role="combobox" needs aria-activedescendant , as actual focus must remain inside the textbox. example: ARIA Practices 1.1 Combobox with Listbox Popup this approach can be complex, and not always supported by assistive technologies (particularly on mobile).
  • 130. making assistive technology aware of content changes
  • 131. <div id="output"></div> var o = document.getElementById("output"); o.innerHTML = "Surprise!"; // show the notification example: notification as result of button press but how can AT users be made aware of the notification / content change?
  • 132. one way to notify users of assistive technologies of new content (a new element added to the page, made visible, a change in text) is to move focus() programmatically to it <div id="output" tabindex="-1" ></div> var o = document.getElementById("output"); o.innerHTML = "Surprise!"; // show the notification o.focus(); // move focus to the notification but this is not always possible, as it would interrupt the user's current actions... example: notification via focus() and a more problematic example simulating a long-running function.
  • 133. ARIA live regions •   announce a change on content without moving focus to it •    aria-live : off (default), polite , assertive
  • 134. <div id="output" aria-live="polite" ></div> var o = document.getElementById("output"); o.innerHTML = "Surprise!"; // show the notification example: notification via aria-live bonus points: set aria-disabled="true" on the control, and optionally aria-busy="true" on the notification / section of the page that is getting updated. see notification via aria-live , with aria- busy and aria-disabled
  • 135. •   some role s have implicit live region (e.g. role="status" and role="alert" ), as do some markup elements (e.g. <output> )
  • 136. <span role="status" > some form of status bar message... </span> example: status bar <span role="alert" > an alert message (no user interaction) </span> example: alert
  • 137. ARIA live regions need to be "primed" first – the browser and AT need to realize there's a live region, and start watching for changes. •   sending something with role="alert" as part of your static HTML document has no effect – AT won't announce this when the page is loading •   creating a dynamic element with aria-live="..." or an implicit live region role and filling it with content right away will (depending on timing) usually not give browser/AT enough time to "see" the element and notice the change ... again resulting in no announcement
  • 138. // create a new div element var newDiv = document.createElement("div"); // set aria-live property newDiv.setAttribute("aria-live", "polite"); // and give it some content var newContent = document.createTextNode("Surprise!"); // add the text node to the newly created div newDiv.appendChild(newContent); // add the new div to the page document.body.appendChild(newDiv); // ... WON'T ACTUALLY WORK
  • 139. by default, live regions only announce any new/changed content. however, this can be controlled: •    aria-atomic : true / false ("treat the live region as one atomic unit and announce everything") example: live region clock and live region clock with aria-atomic (there's also aria-relevant , but it is badly supported/pointless - see Aaron Leventhal and Rob Dodson: Why authors should avoid aria-relevant).
  • 140. ARIA has many more complex/composite widgets and structures
  • 142. <div role="tablist" ...> <div role="tab" aria-controls="panel1" aria-selected="true" ...>Tab 1</div> <div role="tab" aria-controls="panel2" ...>Tab 2</div> <div role="tab" aria-controls="panel3" ...>Tab 2</div> </div> <div role="tabpanel" id="panel1" aria-hidden="false" >...</div> <div role="tabpanel" id="panel2" aria-hidden="true" >...</div> <div role="tabpanel" id="panel3" aria-hidden="true" >...</div> example: ARIA Practices 1.1 Tabs with Automatic Activation variations on this theme: Marco Zehe - Advanced ARIA tip #1: Tabs in web apps not appropriate if you're just marking up a site navigation...
  • 143. some shortcomings / problems with ARIA
  • 144. as useful as ARIA is, it is far from perfect ... •   some patterns rooted deeply in native (Windows) application paradigms – and as a result, quite limited/restrictive •   straying from these patterns / using ARIA incorrectly can make things worse for users •   certain roles/patterns define specific keyboard interactions – but work badly or not at all in touchscreen + AT scenarios •   particularly for new roles/attributes (ARIA 1.1) and complex patterns, browser and AT support may be lacking
  • 146. <div role="menubar" > <div role="menuitem" ...> ... <div role="menu" </div> <div role="menuitem" ...>...</div> <div role="menuitem" ...>...</div> <div role="menuitem" ...>...</div> ... </div> </div> ... </div> example: ARIA Practices 1.1 Navigation Menubar most suitable for real "application-like" web-apps - arguably not appropriate for general "website navigation"
  • 147. ARIA 1.1 menu (role) specific child elements only ( menuitem , menuitemcheckbox , menuitemradio )
  • 148. Using ARIA - 2.15 ARIA Design Patterns and Touch Device Support
  • 149. ARIA Practices 1.1 - Horizontal Slider on Android / Chrome / TalkBack (use volume keys...)
  • 150. ARIA Practices 1.1 - Horizontal Slider on iOS / Safari / VoiceOver (swipe up or down...)
  • 151. ARIA Practices 1.1 - Combobox with Listbox Popup on Android / Chrome / TalkBack
  • 152. ARIA Practices 1.1 - Combobox with Listbox Popup on iOS / Safari / VoiceOver
  • 154. •   not everybody codes their complex applications from scratch using hand-made HTML/JavaScript/CSS •   many ready-made libraries, scripts and frameworks offer at least basic ARIA support (by default, or as an "optional" setting or module) •   particularly open source projects offer good opportunities to get involved – file issues, submit pull requests, improve documentation •   lack of accessibility/ARIA support likely not down to malice, but a lack of knowledge or even understanding of the problem...
  • 156. AngularJS Developer Guide - Accessibility with ngAria
  • 158. ARIA is not a magic bullet
  • 159. what ARIA is/isn't ... •   ARIA conveys "what is this thing and what does it do?" to assistive technologies •   ARIA does not influence browser behavior itself – you need to manage keyboard handling, state, etc. yourself •   ARIA is vast and complex, depends on browser/AT support, has shortcomings
  • 160. pragmatic approach to using ARIA •   understand/break-up complex app into simple component elements •   you don't always need ARIA – appropriate HTML usually best •   No ARIA is better than Bad ARIA •   consult ARIA Practices to see if they match an existing pattern •   follow the rules of ARIA •   check main ARIA specification for correct syntax, expected attributes, valid values •   test in actual browser/AT