• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Creating dynamic and accessible content in Drupal 7 using WAI-ARIA
 

Creating dynamic and accessible content in Drupal 7 using WAI-ARIA

on

  • 2,241 views

Presentation by Web Accessibility Evangelist Sarah Pulis at DrupalCon Sydney - 7 February 2013

Presentation by Web Accessibility Evangelist Sarah Pulis at DrupalCon Sydney - 7 February 2013

Statistics

Views

Total Views
2,241
Views on SlideShare
1,986
Embed Views
255

Actions

Likes
1
Downloads
0
Comments
0

9 Embeds 255

http://www.accessiq.org 177
https://twitter.com 57
http://localhost 12
http://eventifier.co 2
http://mail.accessiq.org 2
http://www.slashdocs.com 2
http://accessiq.demonzmedia.com 1
http://ubuntu.local 1
http://accessiq.org 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Developed by the Protocols and Formats Working Group, which is part of the World Wide Web Consortium (W3C) Web Accessibility Initiative (WAI)ARIA is a W3C Candidate Recommendation on 18 Jan 2011
  • A state is a dynamic property expressing characteristics of an object that may change in response to user action or automated processes. States do not affect the essential nature of the object, but represent data associated with the object or user interaction possibilities.
  • A state is a dynamic property expressing characteristics of an object that may change in response to user action or automated processes. States do not affect the essential nature of the object, but represent data associated with the object or user interaction possibilities.
  • Attributes that are essential to the nature of a given object, or that represent a data value associated with the object.
  • Only use banner, contentinfo and main once within a document or application
  • If the label text is visible on screen, authors SHOULD use aria-labelledby and SHOULD NOT use aria-label

Creating dynamic and accessible content in Drupal 7 using WAI-ARIA Creating dynamic and accessible content in Drupal 7 using WAI-ARIA Presentation Transcript

  • Creating dynamic and accessiblecontent in Drupal 7 using WAI-ARIASarah Pulis (@sarahtp)Web Accessibility EvangelistDruaplCon | Content Authoring | 7 February 2013
  • About me2002 Ignorant2002+ Educated and aware2010 Commitment2012 Champion Read about Making accessibility part of culture change: its all in the attitude on Access iQ™. Image credit: Ruth Ellison and Kim Chatterjee
  • • People who use screen readers turn off Javascript• You can’t have dynamic content on an accessible website• Accessible website are boring
  • WAI-ARIA Accessible Rich Internet Applications(from the W3C Web Accessibility Initiative)
  • Accessibility interoperability at aDOM Node without JavaScript Role States Actions Caret Data Selection Contract Text Assistive Hypertext UITechnology Value component Name Description UI Children Changes Relations From WAI-ARIA Primer
  • Accessibility interoperability at aDOM Node with JavaScript ^Role ^States ^Actions Caret Data Selection Contract Text Assistive Hypertext UITechnology ^Value component Name Description UI Children ^Changes ^Relations From WAI-ARIA Primer
  • WAI-ARIAWAI-ARIA rolesAbstract, widget, document structure andlandmark rolesWAI-ARIA states and propertiesWidget, live region, drag-and-drop andrelationship attributes
  • What we are looking at todayWAI-ARIA for page structureWAI-ARIA live regionsWAI-ARIA for formsWAI-ARIA for widgets
  • WAI-ARIA for page structure
  • <div role=”banner”> <form role=”search”> ”complementary <div role=”main”> ”navigation” <div role= <div role= <div role=”form”> <div role=”application”> ”<div role=”contentinfo”>
  • Differentiate landmarkswith the same typeUse aria-label to differentiate betweenregions with the same landmark type<div role=“navigation”aria-label=“main menu”><div role=“navigation”aria-label=“sub menu”>
  • Videos demonstrating landmark roles using NVDA available atLandmark roles - element list – NVDA andLandmark roles voiced by NVDA.
  • Assistive technology supportJaws 11/12/13 has complete support.ChromeVox has complete supportVoiceOver supports all landmarks except “form”NVDA supports all landmarks except “application”and “form”Window Eyes does not support ARIA landmarksLatest ARIA landmark role support data, The Paciello Group (Nov 2011)
  • WAI-ARIA and forms
  • aria-requiredUse aria-required=“true” forrequired form fields<label for="name"> First Name</label>:<input name="name" id="name" aria-required="true"><em>(required)</em>
  • aria-describedbyUse aria-describedby to providesupporting information for an input field<input type=“password"id=“pwd“ aria-describedby=“pwd-reqs“ /><p id=“pwd-reqs”>Your password must be 8characters in length and include onenumber</p>
  • aria-invalid<label for=“firstname">Firstname</label>:<input name=“firstname"id=“firstname" aria-invalid="true">
  • aria-label and aria-labelledbyThe purpose of aria-label and aria-labelledby are the sameUse aria-labelledby if the label text is visible onthe screenUse aria-label if the label text isn’t visible on thescreen
  • aria-labelledby<label id="label" for="time">Selfdestruct this page in </label><input id="time" type="text" aria-labelledby="label time seconds"size="2" value="5"><span id="seconds"> seconds</span> Example from WebAIM: http://webaim.org/presentations/2012/ahgaria/labelledby3
  • WAI-ARIA live regions
  • ARIA live regions (priority)aria-live=“off”Updates are not announced to the useraria-live=“polite”Updates only announced if user is idlearia-live=“assertive”Updates are announced ASAP, but user is not interrupted
  • ARIA live regions (relevance)aria-busy (values: true, false)AT will only announced changes once aria-busy=“false”aria-atomic (values: true, false)Read out only the change, or the entire live regionaria-relevant (values: additions, removals, text)Relevant changes to live regions depends on value
  • Video demonstrating ARIA live regions using NVDA onYouTube with captions.
  • WAI-ARIA for widgets
  • Video demonstrating dynamic menubar voiced by NVDA onYouTube with captions. Code from Accessible jQuery-uiComponents Demonstration.
  • Drupal and ARIA
  • Drupal 7 themes with WAI-ARIABoronGenesisPanels 960gsFrom Drupal Watchdog – D7 Starter Tehemes
  • Drupal accessibilityDrupal groupsJoin the Accessibility Drupal Group!List of Drupal sites in the Disability SectorAccessible Drupal distrosWeb Accessibility Toolkit: Government of CanadaaGov: PreviousNext
  • ARIA validationARIA attributes don’t validate in HTML4Use the HTML5 DOCTYPE with ARIAmarkupValidate using the W3C Nu MarkupValidation Service
  • Take-awaysDynamic content no longer has to beinaccessible to assistive technologiesStart using ARIA now (if you aren’t already)Easy wins (landmark roles, forms)It’s kinda fun!
  • Don’t forget!Session evaluationCreating dynamic and accessible contentin Drupal 7 using WAI-ARIA[http://bit.ly/XWc3cM]
  • Slides and videosSlides from this presentation onAccess iQ™ SlideShareVideos from this presentation onAccess iQ™ YouTube channel
  • Access iQ™ provides practical hands-onworkshops that teach you how toimplement accessibility in your projects.HTML and CSS techniques for buildingaccessible websites – Sydney – teachingdevelopers how to create accessible digitalexperiences.Implementing accessibility into your digitalprojects [custom workshop] – teaching yourproject team who does what inaccessibility.accessiq.org/events
  • W3C WAI-ARIA documentsWAI-ARIA technical specificationhttp://www.w3.org/TR/wai-aria/WAI-ARIA Primerhttp://www.w3.org/TR/wai-aria-primerWAI-ARIA Authoring Practiceshttp://www.w3.org/TR/wai-aria-practices
  • More WAI-ARIA resourcesUsing ARIA in HTMLhttp://bit.ly/Qz3DHsIntroduction to WAI-ARIA (Opera)http://bit.ly/116YOWThe Paciello Group Bloghttp://www.paciellogroup.com/blog
  • Even more WAI-ARIA resourcesAccessible jQuery-ui Components Demonstrationhttp://bit.ly/12uew61Yahoo! Accessibility code libraryhttp://bit.ly/12ueIC1Mozilla developer network – ARIAhttp://mzl.la/XWgvZ1
  • Level 3, 616-620 Harris StUltimo NSW 2007t: +61 2 8218 9320e: knowhow@accessiq.org @accessiqaccessiq.orgWeb accessibility know how