SlideShare ist ein Scribd-Unternehmen logo
1 von 57
Downloaden Sie, um offline zu lesen
Ebooks That Are Dynamic, Beautiful, and
Accessible
Deborah Kaplan
Suberic Networks, LLC
https://suberic.net/
–
™ Assistive Technology / AT
™ E-reader, Browser, and User Agent
™ Accessibility API
Terminology
–
Web Accessibility Initiative:
Accessible Rich Internet Applications
WAI-ARIA
–
1.  How to use ARIA
2.  When not to use ARIA
3.  It’s for assistive tech only!
3 Simple Rules
–
Okay, it’s a little disingenuous to call this one a “simple rule.”
How to use it
™ Fake HTML semantics
™ Digital publishing semantics
™ Associating & describing
™ Displaying & hiding
™ Actions & form controls
™ Dynamically changing pages
™ Fake HTML semantics
™ Digital publishing semantics
™ Associating & describing
™ Displaying & hiding
™ Actions & form controls
™ Dynamically changing pages
–
role
Fake HTML Semantics
<button>
Genuine
</button>
<div
class=“button”>
Fake
</div>
–
<div
class=“button”>
Fake
<div>
<div
class=“button”
Fake
<div>
<div
class=“button”
role=“button”
Fake
<div>
<div
class=“button”
role=“button”
Fake
<div>
HEY, LOOK AT
THAT BUTTON!
Screen
Reader
Speech
Recognition
Other AT
–
–
Widget Roles
™  button
™  checkbox
™  combobox
™  gridcell
™  link
™  listbox
™  menuitem
™  menuitemcheckbox
™  menuitemradio
™  option
™  progressbar
™  radio
™  scrollbar
™  searchbox
™  separator
™  slider
™  spinbutton
™  switch
™  tab
™  tabpanel
™  textbox
™  treeitem
–
™  Abstract Roles
™  Widget Roles
™  Document Structure Roles
™  Landmark Roles
™  Live Region Roles
™  Window Roles
https://www.w3.org/TR/wai-aria-1.1/#roles_categorization
So Many Roles!
™ Fake HTML semantics
™ Digital publishing semantics
™ Associating & describing
™ Displaying & hiding
™ Actions & form controls
™ Dynamically changing pages
–
abstract doc-abstract
dedication doc-dedication
epilogue doc-epilogue
pull quote doc-pullquote
tip doc-tip
table of contents doc-toc
Digital Publishing semantics:
DPUB-ARIA
–
<nav
epub:type="toc“
role=“doc-toc”
>
Redundancy + DPUB-ARIA =
Good
–
States and Properties
™ Associating & describing
™ Displaying & hiding
™ Controls
™ Dynamic pages
https://www.w3.org/TR/wai-aria-1.1/#states_and_properties
™ Fake HTML semantics
™ Digital publishing semantics
™ Associating & describing
™ Displaying & hiding
™ Actions & form controls
™ Dynamically changing pages
–
Associating & describing
aria-label
aria-labelledby
aria-describedby
aria-details
aria-erorrmessage
<button
aria-label=
"Add italic text <ctrl+i>“>
<input
aria-describedby="special_desc“
type="text">
<div id="special_desc">
For example, gate code or other information to
help the driver find you</div>
™ Fake HTML semantics
™ Digital publishing semantics
™ Associating & describing
™ Displaying & hiding
™ Actions & form controls
™ Dynamically changing pages
–
Displaying & hiding
aria-hidden
Use me very carefully
™ Fake HTML semantics
™ Digital publishing semantics
™ Associating & describing
™ Displaying & hiding
™ Actions & form controls
™ Dynamically changing pages
–
Actions & form controls
aria-checked
aria-disabled
aria-invalid
aria-placeholder
aria-required
™ Fake HTML semantics
™ Digital publishing semantics
™ Associating & describing
™ Displaying & hiding
™ Actions & form controls
™ Dynamically changing pages
–
But first, a word of warning…
Dynamic pages
Progressive
Enhancement
,my ,amaz
+1 ,dynamic1 ,9cr
$ibly ,cool ,ebook
–
Stop trying to dissuade us
from cool stuff, Deborah
aria-live
Portrait of an Actual
Web Developer
<div
aria-live="polite">
–
When Not To Use It
“Sounds cool”
≠
“Does the right thing”
–
™ role=“application”
™ role=“presentation”
™ aria-hidden=“true”
Common Mistakes
–
HTML5 WAI-ARIA
input required input aria-required=“true”
button div role=“button”
div hidden div aria-hidden
hr div role=“separator”
nav div role=“navigation”
ul div role=“list”
input placeholder=“Text!” input aria-placeholder=“Text!”
–
™ Don’t use it if HTML already does the job
™ Don’t add it anyway “just in case.”
™ Do add redundancy if necessary.
™ Do add redundancy for DPUB-ARIA.
Redundant Semantics
–
Only Helps AT
<button>
Genuine
<button>
<div
role=“button”>
Fake
<div>
THEY BOTH
LOOK REAL TO
US!
Screen
Reader
Speech
Recognition
Other AT
ONLY THE
<BUTTON> IS
REAL!
–
™ ARIA doesn’t change browser behavior.
™ Keyboard handling is your job!
™ ARIA gives info to screen readers, speech
recognition, and other AT.
For Assistive Tech Only
–
In Conclusion
™ Check out your reading list!
™ Keyboard handling is your job!
™ HTML5 semantics > ARIA.
™ Don’t add ARIA just in case.
™ ARIA is awesome.
–™  “Accessible Rich Internet Applications (WAI-ARIA) 1.1”. https://
www.w3.org/TR/wai-aria-1.1/
™  “HTML in ARIA”. https://www.w3.org/TR/html-aria/
™  “Digital Publishing WAI-ARIA Module 1.0
. https://www.w3.org/TR/dpub-aria-1.0/
™  “Quick guide to the ARIA specifications
. https://tink.uk/quick-guide-to-the-aria-specifications/
™  “Marco Zehe's Accessibility Blog: category ARIA”. https://
www.marcozehe.de/category/aria/
™  “Using ARIA”. https://www.w3.org/TR/using-aria/
™  “WAI-ARIA Authoring Practices”. https://www.w3.org/TR/wai-aria-
practices/
™  “The Incredible, Accessible, Modal Dialog”. https://gdkraus.github.io/
accessible-modal-dialog/
References
–
Some Trusted Sources
in Web Accessibility
™  https://developer.paciellogroup.com/blog/
™  https://www.marcozehe.de/
™  https://tink.uk/
™ Questions?
™ Where can you can
use ARIA?
™ Discuss!

Weitere ähnliche Inhalte

Ähnlich wie WAI-ARIA In Practice - Deborah Kaplan - ebookcraft 2018

How not to suck at Cyber Security
How not to suck at Cyber SecurityHow not to suck at Cyber Security
How not to suck at Cyber Security
Chris Watts
 

Ähnlich wie WAI-ARIA In Practice - Deborah Kaplan - ebookcraft 2018 (20)

Web accessibility - WAI-ARIA a small introduction
Web accessibility - WAI-ARIA a small introductionWeb accessibility - WAI-ARIA a small introduction
Web accessibility - WAI-ARIA a small introduction
 
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 / AccessU 2018
WAI-ARIA An introduction to Accessible Rich Internet Applications / AccessU 2018WAI-ARIA An introduction to Accessible Rich Internet Applications / AccessU 2018
WAI-ARIA An introduction to Accessible Rich Internet Applications / AccessU 2018
 
Best And Worst Practices Building Ria with Adobe and Microsoft
Best And Worst Practices Building Ria with Adobe and MicrosoftBest And Worst Practices Building Ria with Adobe and Microsoft
Best And Worst Practices Building Ria with Adobe and Microsoft
 
Accessiblity 101 and JavaScript Frameworks
Accessiblity 101 and JavaScript Frameworks Accessiblity 101 and JavaScript Frameworks
Accessiblity 101 and JavaScript Frameworks
 
How not to suck at Cyber Security
How not to suck at Cyber SecurityHow not to suck at Cyber Security
How not to suck at Cyber Security
 
Accessible Websites With Lotus Notes/Domino, presented at the BLUG day event,...
Accessible Websites With Lotus Notes/Domino, presented at the BLUG day event,...Accessible Websites With Lotus Notes/Domino, presented at the BLUG day event,...
Accessible Websites With Lotus Notes/Domino, presented at the BLUG day event,...
 
Testing For Web Accessibility
Testing For Web AccessibilityTesting For Web Accessibility
Testing For Web Accessibility
 
Surviving Dev Frameworks 2019
Surviving Dev Frameworks 2019Surviving Dev Frameworks 2019
Surviving Dev Frameworks 2019
 
Building Web Hack Interfaces
Building Web Hack InterfacesBuilding Web Hack Interfaces
Building Web Hack Interfaces
 
The Enterprise Architecture you always wanted: A Billion Transactions Per Mon...
The Enterprise Architecture you always wanted: A Billion Transactions Per Mon...The Enterprise Architecture you always wanted: A Billion Transactions Per Mon...
The Enterprise Architecture you always wanted: A Billion Transactions Per Mon...
 
How Accessibility Made Me a Better Developer
How Accessibility Made Me a Better DeveloperHow Accessibility Made Me a Better Developer
How Accessibility Made Me a Better Developer
 
Architecting RIAs with Silverlight
Architecting RIAs with SilverlightArchitecting RIAs with Silverlight
Architecting RIAs with Silverlight
 
Yahoo for the Masses
Yahoo for the MassesYahoo for the Masses
Yahoo for the Masses
 
Opera Accessibility SXSW 09
Opera Accessibility SXSW 09Opera Accessibility SXSW 09
Opera Accessibility SXSW 09
 
Why ARIA? [DevChatt 2010]
Why ARIA? [DevChatt 2010]Why ARIA? [DevChatt 2010]
Why ARIA? [DevChatt 2010]
 
Accessibility with Single Page Apps
Accessibility with Single Page AppsAccessibility with Single Page Apps
Accessibility with Single Page Apps
 
Building Event-driven Serverless Applications
Building Event-driven Serverless ApplicationsBuilding Event-driven Serverless Applications
Building Event-driven Serverless Applications
 
P.S. I love you
P.S. I love youP.S. I love you
P.S. I love you
 

Mehr von BookNet Canada

Mehr von BookNet Canada (20)

Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
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
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
Transcript: New from BookNet Canada for 2024: BNC SalesData and LibraryData -...
 
Transcript: Green paths: Learning from publishers’ sustainability journeys - ...
Transcript: Green paths: Learning from publishers’ sustainability journeys - ...Transcript: Green paths: Learning from publishers’ sustainability journeys - ...
Transcript: Green paths: Learning from publishers’ sustainability journeys - ...
 
Green paths: Learning from publishers’ sustainability journeys - Tech Forum 2024
Green paths: Learning from publishers’ sustainability journeys - Tech Forum 2024Green paths: Learning from publishers’ sustainability journeys - Tech Forum 2024
Green paths: Learning from publishers’ sustainability journeys - Tech Forum 2024
 
Transcript: Book industry state of the nation 2024 - Tech Forum 2024
Transcript: Book industry state of the nation 2024 - Tech Forum 2024Transcript: Book industry state of the nation 2024 - Tech Forum 2024
Transcript: Book industry state of the nation 2024 - Tech Forum 2024
 
Book industry state of the nation 2024 - Tech Forum 2024
Book industry state of the nation 2024 - Tech Forum 2024Book industry state of the nation 2024 - Tech Forum 2024
Book industry state of the nation 2024 - Tech Forum 2024
 
Trending now: Book subjects on the move in the Canadian market - Tech Forum 2024
Trending now: Book subjects on the move in the Canadian market - Tech Forum 2024Trending now: Book subjects on the move in the Canadian market - Tech Forum 2024
Trending now: Book subjects on the move in the Canadian market - Tech Forum 2024
 
Transcript: Trending now: Book subjects on the move in the Canadian market - ...
Transcript: Trending now: Book subjects on the move in the Canadian market - ...Transcript: Trending now: Book subjects on the move in the Canadian market - ...
Transcript: Trending now: Book subjects on the move in the Canadian market - ...
 
Transcript: New stores, new views: Booksellers adapting engaging and thriving...
Transcript: New stores, new views: Booksellers adapting engaging and thriving...Transcript: New stores, new views: Booksellers adapting engaging and thriving...
Transcript: New stores, new views: Booksellers adapting engaging and thriving...
 
Show and tell: What’s in your tech stack? - Tech Forum 2023
Show and tell: What’s in your tech stack? - Tech Forum 2023Show and tell: What’s in your tech stack? - Tech Forum 2023
Show and tell: What’s in your tech stack? - Tech Forum 2023
 
Transcript: Show and tell: What’s in your tech stack? - Tech Forum 2023
Transcript: Show and tell: What’s in your tech stack? - Tech Forum 2023Transcript: Show and tell: What’s in your tech stack? - Tech Forum 2023
Transcript: Show and tell: What’s in your tech stack? - Tech Forum 2023
 
Transcript: Redefining the book supply chain: A glimpse into the future - Tec...
Transcript: Redefining the book supply chain: A glimpse into the future - Tec...Transcript: Redefining the book supply chain: A glimpse into the future - Tec...
Transcript: Redefining the book supply chain: A glimpse into the future - Tec...
 
Redefining the book supply chain: A glimpse into the future - Tech Forum 2023
Redefining the book supply chain: A glimpse into the future - Tech Forum 2023Redefining the book supply chain: A glimpse into the future - Tech Forum 2023
Redefining the book supply chain: A glimpse into the future - Tech Forum 2023
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

WAI-ARIA In Practice - Deborah Kaplan - ebookcraft 2018