29
Test Your Fancy-Pants Website for Accessibility Presented by Amber Himes Matz #devsigner @amberhimesmatz

Test Your Fancy-Pants Website for Accessibility

Embed Size (px)

Citation preview

Page 1: Test Your Fancy-Pants Website for Accessibility

Test Your Fancy-Pants Website

for AccessibilityPresented by Amber Himes Matz

#devsigner @amberhimesmatz

Page 2: Test Your Fancy-Pants Website for Accessibility

A quick word about testing…

Page 3: Test Your Fancy-Pants Website for Accessibility

The Basics

Page 4: Test Your Fancy-Pants Website for Accessibility

The Low-Hanging Fruit• A Title for Every Page

• Alternative text for every meaningful image

• Headings. In order. (Don’t skip)

• Sufficient color contrast ratio. So we can read it.

• Resize the text. It’s fun for all ages.

• Navigate with keyboard

Page 5: Test Your Fancy-Pants Website for Accessibility

Forms…Check!• Label your form elements <label for=“search”>Search</label> <input type=“text” name=“search” />

• Navigate and submit the form with keyboard only

• Indicate required fields with more than color

• Indicate errors in fields with more than color

• Position elements correctly for your language

Page 6: Test Your Fancy-Pants Website for Accessibility

Audio/Video• Keyboard access

• Turn off auto-start

• Provide Control: Pause, Stop, Volume, Mute

• Sync’d captions

• Best practice: provide a written transcript

• Describe it

Page 7: Test Your Fancy-Pants Website for Accessibility

Sensible Structure

• Linearize the page. Does it make sense?

• Turn off all styles. Does it make sense?

• Turn off all images. Does it make sense?

• Are there clear headings for each section?

• No need to linearize tables, just mark them up properly.

Page 8: Test Your Fancy-Pants Website for Accessibility

Preliminary Checks

www.w3.org/WAI/eval/preliminary.html

Page 9: Test Your Fancy-Pants Website for Accessibility

The Four Categories of Accessibility

Not just one. Four.

Page 10: Test Your Fancy-Pants Website for Accessibility

Visual

• Non-sighted

• Low-vision

• Obstructed vision

• Anyone over 40

Page 11: Test Your Fancy-Pants Website for Accessibility

Auditory

• Yes, the web is a visual medium, but…

• Ever forgot your headphones in a public setting?

• Captions, transcripts are helpful

Page 12: Test Your Fancy-Pants Website for Accessibility

Motor

• Wide range of motor impairments

• May be using assistive technology like:

• Specialized keyboards

• Eye trackers

• A Single Button

Page 13: Test Your Fancy-Pants Website for Accessibility

Cognitive• Easing the processing of information

• Clear and concise language — good for everyone!

• Associated conditions:

• Down’s syndrome

• Autism

• Developmental delay

• Dyslexia

Page 14: Test Your Fancy-Pants Website for Accessibility

Temporary Disabilities

• Injury

• Situational — hands-free, voice activation, glare on screen

Page 15: Test Your Fancy-Pants Website for Accessibility

Testing

Page 16: Test Your Fancy-Pants Website for Accessibility

Real-World Testing

• Keyboard navigation only

• VoiceOver (OS X)

• NVDA (Windows)

• Zoom-in text

• Accessibility Preferences

Page 17: Test Your Fancy-Pants Website for Accessibility

Auditors

• WAVE — http://wave.webaim.org/

• quail — http://quailjs.org/

• tenon — http://tenon.io/

• HTML Validator — https://validator.w3.org/nu/

Page 18: Test Your Fancy-Pants Website for Accessibility

Automated Testing

• axe-core — https://github.com/dequelabs/axe-core

Page 19: Test Your Fancy-Pants Website for Accessibility

Helpers/Tools

• tota11yhttp://khan.github.io/tota11y/

• Contrast Ratiohttp://leaverou.github.io/contrast-ratio/

Page 20: Test Your Fancy-Pants Website for Accessibility

Simulators/Emulators

• Color Oracle — http://colororacle.org/

• Color Contrast Analyzer (Chrome Extension)

• High Contrast (Chrome Extension)

• WCAG Color Contrast Checker (Firefox)

Page 21: Test Your Fancy-Pants Website for Accessibility

Standards/Guidelines• Web Content Accessibility Guidelines (WCAG) 2.0

http://www.w3.org/TR/WCAG20/

• WAI-ARIA Accessible Rich Internet Applications Suite http://www.w3.org/WAI/intro/aria.php

• HTML Living Standard https://html.spec.whatwg.org/

• Authoring Tool Accessibility Guidelines (ATAG) 2.0 http://www.w3.org/TR/ATAG20/

Page 22: Test Your Fancy-Pants Website for Accessibility

FUN TIME

Page 23: Test Your Fancy-Pants Website for Accessibility

VoiceOver

Page 24: Test Your Fancy-Pants Website for Accessibility

WAVE

Page 25: Test Your Fancy-Pants Website for Accessibility

tota11y

Page 26: Test Your Fancy-Pants Website for Accessibility

Color/High Contrast Analyzer

Page 27: Test Your Fancy-Pants Website for Accessibility

Color Oracle

Page 28: Test Your Fancy-Pants Website for Accessibility

Resources

• The Accessibility Projecthttp://a11yproject.com/

• Web Accessibility Initiativehttp://www.w3.org/WAI/

• Drupalize.Me Podcast: Let’s Chat About Accessibility https://www.lullabot.com/podcasts/drupalizeme-podcast/lets-chat-about-web-accessibility

Page 29: Test Your Fancy-Pants Website for Accessibility

Evaluate this Session“Test Your Fancy-Pants Website for

Accessibility” (Amber Matz)

http://www.devsignercon.com/eval

All evaluations will be submitted in a drawing to win:

Drupalize.Me 1-month membership

PHPStorm License