SlideShare une entreprise Scribd logo
1  sur  17
Télécharger pour lire hors ligne
Are you still doing that?!?!
                         Common Accessibility Errors
                                    Ted Drake
                              Yahoo! Accessibility Lab
Monday, March 28, 2011
Contrast


                         Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility
Monday, March 28, 2011

Make sure web sites have enough contrast
http://snook.ca/technical/colour_contrast/colour.html
Red                                                                        Green
                                              click on the red button




                         Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility
Monday, March 28, 2011

Don’t use color as the only delimiter.
Finance uses color + arrows.
Yahoo! sites are pretty good at doing this correctly
red and green are the same color for those that are color blind.
Lady Gaga stuns the Grammys




Monday, March 28, 2011

Image from Getty Images
Lady Gaga stuns the                                 Lady Gaga performs “Born
                          Grammys                                        This Way” while emerging
                                                                          from a large egg-shaped
                                                                                    pod




                         Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility
Monday, March 28, 2011

This is appropriate alt text
http://ts2.mm.bing.net/
                     Lady Gaga stuns the                                   images/thumbnail.aspx?
                          Grammys                                         q=590377916357&id=99b
                                                                          50262230077d041a48c43
                                                                                   e717cf39




                         Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility
Monday, March 28, 2011

don’t forget to add the alt attribute to every image
Lady Gaga stuns the
                          Grammys                                           Lady Gaga stuns the
                                                                                 Grammys




                         Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility
Monday, March 28, 2011

It doesn’t help to duplicate the headline in the image.
Try placing them in the same link and use alt=””
Lady Gaga stuns the
                          Grammys




                         Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility
Monday, March 28, 2011

alt=”” is ignored by screen reader.
Good for decorative images
Good for images within a link that has descriptive text
Not good for content images by themselves
role=”presentation” will tell screenreaders to ignore the image
Images Disabled

                         Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility
Monday, March 28, 2011

add a background color to your background CSS when the link text is the same color as the
container background color.
This can cause problems with transparent images using rounded corners.
<html dir=”rtl”>




                                                     The mother of all scroll bars

                                   Off-screen Text
                         Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility
Monday, March 28, 2011

using position:absolute; left:-999em to create off-screen text generates huge scroll bars
when switched to rtl text direction
Use Clip
               .visually-hidden {
                   position: absolute !important;
                   clip:     rect(1px 1px 1px 1px); /* IE6, 7 */
                   clip:     rect(1px, 1px, 1px, 1px);
               }



                         Yahoo! Accessibility Library
               Clip your hidden content for better accessibility


                         Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility
Monday, March 28, 2011

This rule tells us to position the element absolutely
then only show the top left pixel.
http://yaccessibilityblog.com/library/css-clip-hidden-content.html
background images disapear in high contrast or MS optimization mode. Inline images can be
safer.
Some rights reserved by Marcin Wichary on Flickr
Monday, March 28, 2011

Don’t forget keyboard accessibility
:hover, :focus, :active



Monday, March 28, 2011

Don’t remove focus and active styles without providing an alternative.
onclick is the only event that is supported by keyboard as well as mouse users
<bu$on>Sign	
  In</bu$on>	
  

               <a>Cancel</a>	
  


                         Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility
Monday, March 28, 2011

Don’t use a link for a button.
at least add role=”button”
you can style a button to look like a link for UED
Command +
                                     Is not testing for text size flexibility




                         Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility
Monday, March 28, 2011

In firefox and safari choose view->zoom text only, then use command +
Also test by setting a larger text size in your browser preferences
<label for=”p”>Search Yahoo! Foo</label>
    <input id=”p” name=”p” type=”text”>




                              Buckle it up
                         <label for=”p”>Search the web</label>
                         <input id=”p” name=”p” type=”text”>




Monday, March 28, 2011

implicit binding of label and input does not work in IE6.
Buckle + Belt is fine.
Make sure you don’t duplicate input id’s on the same page.
Test your forms with a screenreader. Using an image with alt within the label was found to
not work.
Visit our code library
              Accessibility.Yahoo.Com/library/


                         Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility
Monday, March 28, 2011

Visit the Yahoo! Accessibility Lab’s code library to find best practices for accessibility.

Contenu connexe

Plus de Ted Drake

The Saga of Accessible Colors
The Saga of Accessible ColorsThe Saga of Accessible Colors
The Saga of Accessible Colors
Ted Drake
 

Plus de Ted Drake (20)

Inclusive design for Long Covid
 Inclusive design for Long Covid  Inclusive design for Long Covid
Inclusive design for Long Covid
 
Covid 19, brain fog, and inclusive design
Covid 19, brain fog, and inclusive designCovid 19, brain fog, and inclusive design
Covid 19, brain fog, and inclusive design
 
Customer obsession and accessibility
Customer obsession and accessibilityCustomer obsession and accessibility
Customer obsession and accessibility
 
The Saga of Accessible Colors
The Saga of Accessible ColorsThe Saga of Accessible Colors
The Saga of Accessible Colors
 
Artificial Intelligence and Accessibility - GAAD 2020 - Hello A11y
Artificial Intelligence and Accessibility - GAAD 2020 - Hello A11yArtificial Intelligence and Accessibility - GAAD 2020 - Hello A11y
Artificial Intelligence and Accessibility - GAAD 2020 - Hello A11y
 
Expand your outreach with an accessibility champions program
Expand your outreach with an accessibility champions program Expand your outreach with an accessibility champions program
Expand your outreach with an accessibility champions program
 
Intuit's Accessibility Champion Program - Coaching and Celebrating
Intuit's Accessibility Champion Program - Coaching and Celebrating Intuit's Accessibility Champion Program - Coaching and Celebrating
Intuit's Accessibility Champion Program - Coaching and Celebrating
 
Accessibility First Innovation
Accessibility First InnovationAccessibility First Innovation
Accessibility First Innovation
 
Inclusive customer interviews make it your friday task
Inclusive customer interviews  make it your friday taskInclusive customer interviews  make it your friday task
Inclusive customer interviews make it your friday task
 
Coaching and Celebrating Accessibility Champions
Coaching and Celebrating Accessibility ChampionsCoaching and Celebrating Accessibility Champions
Coaching and Celebrating Accessibility Champions
 
Accessibility statements and resource publishing best practices csun 2019
Accessibility statements and resource publishing best practices   csun 2019Accessibility statements and resource publishing best practices   csun 2019
Accessibility statements and resource publishing best practices csun 2019
 
Raising Accessibility Awareness at Intuit
Raising Accessibility Awareness at IntuitRaising Accessibility Awareness at Intuit
Raising Accessibility Awareness at Intuit
 
Trickle Down Accessibility
Trickle Down AccessibilityTrickle Down Accessibility
Trickle Down Accessibility
 
Trickle-Down Accessibility - CSUN 2018
Trickle-Down Accessibility - CSUN 2018Trickle-Down Accessibility - CSUN 2018
Trickle-Down Accessibility - CSUN 2018
 
Accessibility metrics Accessibility Data Metrics and Reporting – Industry Bes...
Accessibility metrics Accessibility Data Metrics and Reporting – Industry Bes...Accessibility metrics Accessibility Data Metrics and Reporting – Industry Bes...
Accessibility metrics Accessibility Data Metrics and Reporting – Industry Bes...
 
Mystery Meat 2.0 – Making hidden mobile interactions accessible
Mystery Meat 2.0 – Making hidden mobile interactions accessibleMystery Meat 2.0 – Making hidden mobile interactions accessible
Mystery Meat 2.0 – Making hidden mobile interactions accessible
 
React Native Accessibility - San Diego React and React Native Meetup
React Native Accessibility - San Diego React and React Native MeetupReact Native Accessibility - San Diego React and React Native Meetup
React Native Accessibility - San Diego React and React Native Meetup
 
Ubiquitous Transactions - Financial Future and Accessibility
Ubiquitous Transactions - Financial Future and AccessibilityUbiquitous Transactions - Financial Future and Accessibility
Ubiquitous Transactions - Financial Future and Accessibility
 
Automated Testing – Web, Mobile, Desktop - Challenges and Successes
Automated Testing – Web, Mobile, Desktop - Challenges and SuccessesAutomated Testing – Web, Mobile, Desktop - Challenges and Successes
Automated Testing – Web, Mobile, Desktop - Challenges and Successes
 
Wearable Future for Accessibility
Wearable Future for AccessibilityWearable Future for Accessibility
Wearable Future for Accessibility
 

Dernier

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Dernier (20)

Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
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
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
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, ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
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
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Common Accessibility Mistakes

  • 1. Are you still doing that?!?! Common Accessibility Errors Ted Drake Yahoo! Accessibility Lab Monday, March 28, 2011
  • 2. Contrast Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility Monday, March 28, 2011 Make sure web sites have enough contrast http://snook.ca/technical/colour_contrast/colour.html
  • 3. Red Green click on the red button Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility Monday, March 28, 2011 Don’t use color as the only delimiter. Finance uses color + arrows. Yahoo! sites are pretty good at doing this correctly red and green are the same color for those that are color blind.
  • 4. Lady Gaga stuns the Grammys Monday, March 28, 2011 Image from Getty Images
  • 5. Lady Gaga stuns the Lady Gaga performs “Born Grammys This Way” while emerging from a large egg-shaped pod Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility Monday, March 28, 2011 This is appropriate alt text
  • 6. http://ts2.mm.bing.net/ Lady Gaga stuns the images/thumbnail.aspx? Grammys q=590377916357&id=99b 50262230077d041a48c43 e717cf39 Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility Monday, March 28, 2011 don’t forget to add the alt attribute to every image
  • 7. Lady Gaga stuns the Grammys Lady Gaga stuns the Grammys Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility Monday, March 28, 2011 It doesn’t help to duplicate the headline in the image. Try placing them in the same link and use alt=””
  • 8. Lady Gaga stuns the Grammys Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility Monday, March 28, 2011 alt=”” is ignored by screen reader. Good for decorative images Good for images within a link that has descriptive text Not good for content images by themselves role=”presentation” will tell screenreaders to ignore the image
  • 9. Images Disabled Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility Monday, March 28, 2011 add a background color to your background CSS when the link text is the same color as the container background color. This can cause problems with transparent images using rounded corners.
  • 10. <html dir=”rtl”> The mother of all scroll bars Off-screen Text Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility Monday, March 28, 2011 using position:absolute; left:-999em to create off-screen text generates huge scroll bars when switched to rtl text direction
  • 11. Use Clip .visually-hidden { position: absolute !important; clip: rect(1px 1px 1px 1px); /* IE6, 7 */ clip: rect(1px, 1px, 1px, 1px); } Yahoo! Accessibility Library Clip your hidden content for better accessibility Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility Monday, March 28, 2011 This rule tells us to position the element absolutely then only show the top left pixel. http://yaccessibilityblog.com/library/css-clip-hidden-content.html background images disapear in high contrast or MS optimization mode. Inline images can be safer.
  • 12. Some rights reserved by Marcin Wichary on Flickr Monday, March 28, 2011 Don’t forget keyboard accessibility
  • 13. :hover, :focus, :active Monday, March 28, 2011 Don’t remove focus and active styles without providing an alternative. onclick is the only event that is supported by keyboard as well as mouse users
  • 14. <bu$on>Sign  In</bu$on>   <a>Cancel</a>   Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility Monday, March 28, 2011 Don’t use a link for a button. at least add role=”button” you can style a button to look like a link for UED
  • 15. Command + Is not testing for text size flexibility Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility Monday, March 28, 2011 In firefox and safari choose view->zoom text only, then use command + Also test by setting a larger text size in your browser preferences
  • 16. <label for=”p”>Search Yahoo! Foo</label> <input id=”p” name=”p” type=”text”> Buckle it up <label for=”p”>Search the web</label> <input id=”p” name=”p” type=”text”> Monday, March 28, 2011 implicit binding of label and input does not work in IE6. Buckle + Belt is fine. Make sure you don’t duplicate input id’s on the same page. Test your forms with a screenreader. Using an image with alt within the label was found to not work.
  • 17. Visit our code library Accessibility.Yahoo.Com/library/ Yahoo! Accessibility Lab Accessibility.Yahoo.Com | @yahooaccess | Facebook.com/YahooAccessibility Monday, March 28, 2011 Visit the Yahoo! Accessibility Lab’s code library to find best practices for accessibility.