backing yourself into an accessible corner

48
Backing Yourself into an Accessible Corner

Upload: mark-casias

Post on 21-Feb-2017

80 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Backing yourself into an Accessible Corner

Backing Yourself into an Accessible

Corner

Page 2: Backing yourself into an Accessible Corner

@teampoop

http://www.abqwebgeeks.orgslideshare.net/teampoop

Mark brings a fifteen year programming background and eight years of Drupal experience to his role as Senior Drupal Developer at Mediacurrent. Highly involved in his local web community, Mark runs the ABQ Webgeeks Group and started the Albuquerque Drupal Users group.

Senior Drupal Developer - Mediacurrent

Shameless Self Promotion 1

Page 3: Backing yourself into an Accessible Corner

Mediacurrent Dropcasthttps://www.mediacurrent.com/[email protected]

@kepford@imariohernandez@ryanissampson

Shameless Self Promotion 2

Page 4: Backing yourself into an Accessible Corner

Mediacurrent Friday 55 things5 ways5 minutes on various topics.

Video (sorry)

https://www.mediacurrent.com/friday5

Shameless Self Promotion 3

Page 5: Backing yourself into an Accessible Corner

She’s my pal

This is DruLast thing about me.

Page 6: Backing yourself into an Accessible Corner

Found out on Monday I was giving this talk…

Page 7: Backing yourself into an Accessible Corner

Accessibility Primer

Modules

Resources

Backend Development

4

3

2

1

Things covered

Page 8: Backing yourself into an Accessible Corner

Accessibility Primer

Page 9: Backing yourself into an Accessible Corner

What is website accessibility anyway?

Credit: http://netdna.webdesignerdepot.com

Web accessibility refers to the inclusive practice of removing barriers that prevent interaction with, or

access to websites, by people with disabilities. When sites are correctly designed, developed and edited,

all users have equal access to information and functionality.

- Wikipedia

Page 10: Backing yourself into an Accessible Corner

Who is website accessibility for?

Credit: http://www.northfloridaahec.org

EVERYONE!!!57 million Americans (~20%) have some type of

DISABILITY

• Visual impairments• Hearing impairments• Cognitive impairments• Mobility impairments

• Temporary Disabilities

• Seizure Disorders• Aging population• Search engine bots

Page 11: Backing yourself into an Accessible Corner

US Population = 282,000,000(2000 census data)

Credit: https://openclipart.org

Page 12: Backing yourself into an Accessible Corner

Total Disabled Population = 57,000,000(2000 census data)

Credit: https://openclipart.org

~20%

Page 13: Backing yourself into an Accessible Corner

Severely Disabled Population = 28,000,000(2000 census data)

Credit: https://openclipart.org

~10%

Page 14: Backing yourself into an Accessible Corner

Why should I care about website accessibility?

Credit: https://ironyisapoormaster.files.wordpress.com

Karma Points - Everyone should have full access to cat videos & ridiculous internet memes…as well as all the useful information

Smart Thing to Do - Opens your site to a wider audience, good for SEO/search bots/Google ranking, etc

It is the Law* - Federal/state agencies, airlines, Section 504 & 508, Americans with Disabilities Act (ADA) 2018

Page 15: Backing yourself into an Accessible Corner

Backend Development

Page 16: Backing yourself into an Accessible Corner

Myth

The First Step to Accessibility: Good

Design

Page 17: Backing yourself into an Accessible Corner

She’s my pal

This is DruColors

Page 18: Backing yourself into an Accessible Corner

She’s my pal

This is DruBetter Colors

Page 19: Backing yourself into an Accessible Corner

She’s my pal

This is DruSeriously

Don’t let me design your site.

Page 20: Backing yourself into an Accessible Corner
Page 21: Backing yourself into an Accessible Corner

Completely

Accessible!

Page 22: Backing yourself into an Accessible Corner

Semantic HTML

http://www.developer.com/lang/understanding-the-proper-way-to-lay-out-a-page-with-html5.html

Page 23: Backing yourself into an Accessible Corner

Skip to Content

http://a11yproject.com/posts/skip-nav-links/

Page 24: Backing yourself into an Accessible Corner

HTML5 Support

http://html5accessibility.com/

Page 25: Backing yourself into an Accessible Corner

ARIA

http://www.clarissapeterson.com/2012/11/html5-accessibility/

Page 26: Backing yourself into an Accessible Corner

Images

• Use ALT Text• ALT Text gives full meaning of the image in relationship to the page

• <figure> and <figcaption> tags• USE ALT TEXT!

Page 27: Backing yourself into an Accessible Corner

Forms

• Use <label> Elements• <fieldset> and <legend> elements• use the aria-required=“true" property for required fields

• Specify data types.• Input Patterns

Page 28: Backing yourself into an Accessible Corner

Form Example 2

<label for=”creditcard”>Credit Card Number</label><input name="CreditCard" id="creditcard" pattern=”[0-9]{13,16}”

title=”A credit card number is 13 or 16 digits.” />

Page 29: Backing yourself into an Accessible Corner

Document Structure

<fieldset><legend>Your Favorite Color</legend><input type=”radio” name=”favoritecolor” value=”blue” id=”blue”><label for=”blue”>Blue</label><input type=”radio” name=”favoritecolor” value=”green” id=”green”><label for=”green”>Green</label><input type=”radio” name=”favoritecolor” value=”purple” id=”purple”><label for=”purple”>Purple</label></fieldset>

Page 30: Backing yourself into an Accessible Corner

Testing

• http://wave.webaim.org/• http://pa11y.org/• Apple built in VoiceOver• Pretty sure there’s something for

Windows

Page 31: Backing yourself into an Accessible Corner

Testing

Seriously.. try navigating your site without a mouse. I double dog dare

you

Page 32: Backing yourself into an Accessible Corner

Testing

Page 33: Backing yourself into an Accessible Corner

Modules

Page 34: Backing yourself into an Accessible Corner

Modules

Accessible Forms (D7)https://www.drupal.org/project/

accessible_formsThis is a simple Drupal 7 module for adding form

attributes for improved accessibility.Includes: required attribute to required fields,required label to required fields (instead of asterix *),aria-invalid to form fields with errors

Not needed in D8

Page 35: Backing yourself into an Accessible Corner

Modules

Accessible Mega Menu (D7)https://www.drupal.org/project/

accessible_mega_menuThis module provides integration with the Accessible

Mega Menu jQuery plugin. An Accessible Mega Menu block is created for each menu. Accessible Mega Menu is an open source jQuery plugin provided by Adobe Accessibility (https://github.com/adobe-accessibility).

Port to D8 issue: https://www.drupal.org/node/2635052

Page 36: Backing yourself into an Accessible Corner

Modules

Add to Any (D7 & D8)https://www.drupal.org/project/addtoany

Share buttons for Drupal including the AddToAny universal share button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more.

Page 37: Backing yourself into an Accessible Corner

Modules

Block ARIA Landmark Roles (D7 & D8)

https://www.drupal.org/project/block_aria_landmark_rolesInspired by Block Class, this module

adds additional elements to the block configuration forms that allow users to assign a ARIA landmark role to a block.

Page 38: Backing yourself into an Accessible Corner

Modules

High contrast (D7 & D8 pending)https://www.drupal.org/project/high_contrastProvides a quick solution to allow the user to

switch between the active theme and a high contrast version of it.

Page 39: Backing yourself into an Accessible Corner

Modules

HTML Tidy (D7)https://www.drupal.org/project/htmltidy

This module tidies Drupal's HTML output with HTML Tidy by optionally sanitizing it when it is saved or when it is displayed, like a traditional input formatter. Missing and mis-ordered tag components are replaced and reordered automatically so that user input doesn't break site structure with open tags and the like.

Port to D8 issue: https://www.drupal.org/node/2635180

Page 40: Backing yourself into an Accessible Corner

Modules

Readability Analyzer (D7)https://www.drupal.org/project/

readabilityThis module is designed to help copywriters and

editors develop more consistently readable content across a Drupal site. It performs five popular automated readability tests that provide a grade level equivalency of the difficulty of a page's readability. It enables you to set a target grade range for your site's content.

Port to D8 issue: https://www.drupal.org/node/2635184

Page 41: Backing yourself into an Accessible Corner

Modules

Switch Theme (D7)https://www.drupal.org/project/

switchthemeAdds a block to allow users to switch between

enabled themes. Themes can be given 'user friendly' names and access can be controlled by user role. Switchtheme provides optional support for Browscap module to switch themes based on the browser of a visitor.

Port to D8 issue: https://www.drupal.org/node/1601192

Page 42: Backing yourself into an Accessible Corner

Modules

Text Resize (D7 & D8)https://www.drupal.org/project/

text_resizeThe Text Resize module provides your end-users with

a block that can be used to quickly change the font size of text on your Drupal site. This module is primarily focused on increasing the accessibility of your pages, by helping visually-impaired users to adjust the text size so that it is most comfortable for their eyesight.

Page 43: Backing yourself into an Accessible Corner

Resources

Page 44: Backing yourself into an Accessible Corner

Resources

Types of Disabilities - https://www.w3.org/WAI/intro/people-use-

web/diversity

Accessibility Law - http://webaim.org/articles/laws/usa

Understanding Web Accessibility -

http://uiaccess.com/understanding.html

User Stories -

https://www.w3.org/WAI/intro/people-use-web/stories

Design/Theme Specific - http://alistapart.com/topic/accessibility

Page 45: Backing yourself into an Accessible Corner

Resources

WCAG 2.0 - https://www.w3.org/TR/WCAG20/#guidelines WCAG 2.0 Checklist - http://webaim.org/standards/wcag/checklistSection 508 - http://www.section508.govSection 508 Checklist - http://webaim.org/standards/508/checklistATAG - https://www.w3.org/WAI/intro/atag.phpUAAG - https://www.w3.org/WAI/intro/uaag.phpGeneral checklist - http://a11yproject.com/checklist.html

Page 46: Backing yourself into an Accessible Corner

Resources

Overview of Tools - http://webaim.org/articles/toolsGeneral Tool - http://pa11y.orgVisualization Toolkit - http://khan.github.io/tota11yColor Blindness Simulator - http://www.color-blindness.com/coblis-color-blindness-simulatorColor Safe - http://colorsafe.coVoiceOver - http://webaim.org/articles/voiceoverWave - http://wave.webaim.org

Page 47: Backing yourself into an Accessible Corner

Resources

• Accessibility Statement - https://www.drupal.org/about/features/accessibility

• Accessibility in D8 - https://www.drupal.org/node/2004876• Front-end accessibility - https://www.drupal.org/node/464472• Back-end accessibility - https://www.drupal.org/node/1637990• Site builder accessibility - https://www.drupal.org/node/394094• Accessibile modules - https://www.drupal.org/node/394252• Clarissa Patterson’s awesome post I promised to be in the

resources part:http://www.clarissapeterson.com/2012/11/html5-accessibility/

Page 48: Backing yourself into an Accessible Corner

Thank you!