23
Get the benefits and avoid the hype ARIA The Inside Track Aaron Leventhal Product Management Ai Squared / sitecues

Aria inside track

Embed Size (px)

Citation preview

Page 1: Aria inside track

Get  the  benefits  and  avoid  the  hype  

ARIA  The  Inside  Track  

Aaron  Leventhal  

Product  Management  Ai  Squared  /  sitecues  

Page 2: Aria inside track

•  Birth  of  ARIA  •  Why  it  exists  •  How  it  relates  to  accessibility  /  universal  design  

•  Soul  of  ARIA  •  How  it  fits  together  with  browsers,  screen  readers  &  content  •  Types  of  ARIA  

•  Coming  of  age  for  ARIA  •  Should  you  use  it?  •  Examples  and  demos  •  Awesome  example  with  SVG  

We’ll  Cover  

Page 3: Aria inside track

• Developed  Braille  publishing  in  the  90s  

• Netscape  accessibility  lead  -­‐  Sat  next  to  the  world’s  2nd  webcam!  

•  Accessibility  architect  for  IBM,  Firefox  -­‐  Made  ARIA  a  reality  

•  Director  of  Product  Management  at  Ai  Squared  

About  Me    

Page 4: Aria inside track

Screen  reader  support  

Accessibility  

Universal  design  

What  is  ARIA?  

Page 5: Aria inside track

A  set  of  attributes,  peppered  in  HTML,  allowing  screen  readers  to  better  understand  crazy  web  content,  like  <div role=“checkbox” aria-checked=“true”> Are you my friend? </div>

A  W3C  recommendation  (an  official  standard).  

A  tool  in  your  tool  chest.  Anything  you  do  on  the  web  can  potentially  be  made  accessible  to  blind  users  with  ARIA.  

What  is  ARIA?  

Page 6: Aria inside track

Well-­‐tested,  polished,  consistent  

Well-­‐documented  

A  way  to  help  users  without  an  assistive  technology  (yet).  

A  tool  to  help  voice  input  users    (it  could,  but  the  software  makers  must  add  this).  

What  ARIA  isn’t  

Page 7: Aria inside track

Aware  screen  reader  users  

Has  screen  reader  

Technically  savvy  

About  100,000  (U.S.)  

Benefits  from  ARIA  

Who  is  it  for?  

Page 8: Aria inside track

Aware  screen  reader  users  —  now   Other  users  with  difficulties  —  not  yet  

Has  screen  reader   Not  a  screen  reader  user  

Technically  savvy   Or  not  very  technical  

About  100,000  (U.S.)   About  100  million  (U.S.)  

Benefits  from  ARIA   Does  not  benefit  from  ARIA  —  yet  

Who  is  it  for?  

Page 9: Aria inside track

Accessibility  on  the  early  web  

•  Screen  reader  fetches  on  page  load  •  Content  stable  •  Developers  code  alt  text,  form  labels,  and  that’s  about  it!  •  To  learn  more,  go  to  webaim.org  and  click  checklist  

Page 10: Aria inside track

The  new  web  

•  Page  changes  all  the  time  •  “Widgets”  are  nothing  more  than  styled  content  responding  to  input  •  Screen  reader  needs  to  keep  up  with  live  changes  •  ARIA  to  the  rescue!!!  

Page 11: Aria inside track

Soul  of  ARIA  

W3C  face-­‐to-­‐face,  2008  

Page 12: Aria inside track

ARIA  goodness  

Land  marks  

Live  regions  

Forms  

Widgets  

Page 13: Aria inside track

@role—“what  is  this  thing?”  

alert  

button  

checkbox   dialog  

menu        menubar              menuitem  

progressbar  

radio              radiogroup  

tablist          tab                  tabpanel  

slider  

tooltip  

tree          treegrid                treeitem                          grid                                gridecell  

toolbar          separator  

Page 14: Aria inside track

@aria-­‐foo  —properties  

aria-­‐describedby  

aria-­‐checked  

aria-­‐disabled  aria-­‐expanded  

aria-­‐invalid  

aria-­‐valuenow  

aria-­‐selected  

aria-­‐label          aria-­‐labelledby  

aria-­‐activedescendant  

aria-­‐live          aria-­‐busy  

aria-­‐pressed  

aria-­‐required  

aria-­‐labelledby  

Page 15: Aria inside track

Landmarks!  

Just  add  role=“main”  etc.  to  your  content  containers  

Page 16: Aria inside track

Live  regions!  

Use  aria-­‐live=“polite”  Other  values  are  “off”,  “assertive”,  “rude”  

Page 17: Aria inside track

Enhanced  forms!  

<label for=“uname”>Name</label>

<input id=”uname” type="text” required aria-describedby=“uname_desc”>"

<p id=“uname_desc”>" Enter your real name, so people you know can recognize you."</p>"

Page 18: Aria inside track

Enhanced  forms  

<div role=“alert”>" Your new password must be confirmed correctly."</div>"

Page 19: Aria inside track

Widgets!  role=“slider”  tabindex=“0”  (tabbable!)  aria-­‐valuenow  aria-­‐valuemin  aria-­‐valuemax  

role=“tree”  role=“treeitem”  tabindex=“0”  aria-­‐activedescendant  lots  of  keyboard  code  

Page 20: Aria inside track

AT users (4x or lower)

Good to average vision

300M

Low vision (2-4x)

500k 11M  22M by 2020  

Dyslexia  &  LD  —  30M  

Literacy  challenges  —  40M  

Non-­‐native  speakers  —  47M  

Accessibility  to  universal  design  

Difficulty using web

Accessibility  =  best  practices  to  help  users  with  the  strongest  needs  and  awareness  

Universal  design  =  Helping  everyone  with  features  deeply  integrated  into  the  product  concept  itself  

Page 21: Aria inside track

•  None:  You  don’t  have  time  to  learn,  tinker  and  test    (takes  time  to  get  it  right)  

•  Like  a  spice:  Your  content  is  basic,  you  are  new  to  ARIA,  you  just  want  to  make  your  web  page  more  usable  for  blind  users  

•  Like  a  steak  dinner:    You’re  compelled  to  fix  screen  reader  access  and  your  content  is  complex  and  dynamic.  Become  the  expert.  

How  much  ARIA  should  I  use?  

Page 22: Aria inside track

•  Does  it  affect  my  ordinary  use  of  my  page?  No  —  only  the  interaction  with  assistive  tech  

•  Can  I  detect  ARIA  support?  Nope  

•  Does  it  gracefully  degrade?  Yes  

•  Should  I  prefer  ARIA  or  HTML5  accessibility  features?  For  similar  things,  prefer  HTML5  

ARIA  FAQ  

Page 23: Aria inside track

• w3.org  

• developer.mozilla.org  

Resources