Share
Embed
Accessibility Quick Wins
Tips to make your website visually accessible
(that everyone can do)
Claudia
February 23, 2020
Transcript
45 slides
-
1 Accessibility Quick Wins Tips to make your website visually
accessible (that everyone can do) Claudia Yuen www.claudiayuen.com -
2 a designer and art director based in Toronto focusing
on branding and UI. Some websites I’ve worked on: -
3 Agenda 1 What is Web Accessibility 2 Keyboard Accessibility
3 Colour 4 Typography 5 Buttons and Interactive elements 6 Form Fields 7 Images and Video 8 Resources -
5 What is Web Accessibility Digital accessibility refers to the
practice of building digital content and applications that can be used by a wide range of people, including individuals who have visual, motor, auditory, speech, or cognitive disabilities. The World Health Organization estimated that roughly 217 million people live with some form of moderate to severe vision impairment. That statistic alone is reason enough to design for accessibility. When sites are correctly designed, developed and edited, all users have equal access to information and functionality. -
6 Accessibility Levels Web Content Accessibility Guidelines (WCAG) 2.0 is
the international standard. Level AA is the standard many governments are using as a benchmark as this level targets the most common and most problematic issues for web users. www.w3.org -
7 Level AA checklist .1.1 – Non-text Content Provide text
alternatives for non-text content 1.2.1 – Audio-only and Video-only (Pre-recorded) Provide an alternative to video-only and audio-only content 1.2.2 – Captions (Pre-recorded) Provide captions for videos with audio 1.2.3 – Audio Description or Media Alternative (Pre-recorded) Video with audio has a second alternative 1.3.1 – Info and Relationships Logical structure 1.3.2 – Meaningful Sequence Present content in a meaningful order 1.3.3 – Sensory Characteristics Use more than one sense for instructions 1.4.1 – Use of Colour Don’t use presentation that relies solely on colour 1.4.2 – Audio Control Don’t play audio automatically 2.1.1 – Keyboard Accessible by keyboard only 2.1.2 – No Keyboard Trap Don’t trap keyboard users 2.2.1 – Timing Adjustable Time limits have user controls 2.2.2 – Pause, Stop, Hide Provide user controls for moving content 2.3.1 – Three Flashes or Below No content flashes more than three times per second 2.4.1 – Bypass Blocks Provide a ‘Skip to Content’ link 2.4.2 – Page Titled Use helpful and clear page titles 2.4.3 – Focus Order Logical order 2.4.4 – Link Purpose (In Context) Every link’s purpose is clear from its context 3.1.1 – Language of Page Page has a language assigned 3.2.1 – On Focus Elements do not change when they receive focus 3.2.2 – On Input Elements do not change when they receive input 3.3.1 – Error Identification Clearly identify input errors 3.3.2 – Labels or Instructions Label elements and give instructions 4.1.1 – Parsing No major code errors 4.1.2 – Name, Role, Value Build all elements for accessibility 1.2.4 – Captions (Live) Live videos have captions 1.2.5 – Audio Description (Pre-recorded) Users have access to audio description for video content 1.4.3 – Contrast (Minimum) Contrast ratio between text and background is at least 4.5:1 1.4.4 – Resize Text Text can be resized to 200% without loss of content or function 1.4.5 – Images of Text Don’t use images of text 2.4.5 – Multiple Ways Offer several ways to find pages 2.4.6 – Headings and Labels Use clear headings and labels 2.4.7 – Focus Visible Ensure keyboard focus is visible and clear 3.1.2 – Language of Parts Tell users when the language on a page changes 3.2.3 – Consistent Navigation Use menus consistently 3.2.4 – Consistent Identification Use icons and buttons consistently 3.3.3 – Error Suggestion Suggest fixes when users make errors 3.3.4- Error Prevention (Legal, Financial, Data) Reduce the risk of input errors for sensitive data -
9 Screen Reader From the motorically disabled to the vision
impaired, there are many kinds of users that rely solely on the keyboard – and not the mouse – to navigate online Screen readers convert digital text into synthesized speech. They empower users to hear content and navigate with the keyboard -
10 Page Order As a keyboard user navigates through the
page, a screen reader will read the content in the order it’s presented in the code All links and controls on the web page must be accessed using the Tab key on the keyboard -
12 Visible Focus Indicator All browsers display a visible outline
around the element that currently has keyboard focus Most browser have an easy-to-see blue outline -
15 Colour Good contrast between the text on your website
and the background colour Lorem ipsum dolor sit amet, consectetur adipiscing elit Lorem ipsum dolor sit amet, consectetur adipiscing elit -
16 Colour Make sure the contrast ratio between your text
and background is at least 4.5:1 https://webaim.org/resources/contrastchecker/ Lorem ipsum dolor sit amet, consectetur adipiscing elit Lorem ipsum dolor sit amet, consectetur adipiscing elit -
17 Colour Make sure the contrast ratio between your text
and background is at least 4.5:1 #0E8145 #23E781 -
19 Colour Make sure there is contrast with text on
top of images https://www.brandwood.com/a11y/ -
20 Colour Make sure there is contrast with text on
top of images -
22 Non-color Identifier Identifiers such as icons or text descriptions
or different patterns can distinguish between the colors -
24 Hierarchy Use headings to communicate hierarchy Ensure heading styles
differ from paragraph text by some combination of size, weight, face, or color H1 H2 H3 Body Copy H4 -
25 Body Copy Use a large enough font size for
body text so that people can comfortably read. Use at least 16px 45-75 characters per line is a comfortable reading paragraph -
26 Type Size Except for captions and images of text,
text should be resized without assistive technology up to 200 percent without loss of content or functionality When enlarged, text should not become illegible when zoomed or overlaps -
28 Don’t Rely On Just Colour People with low visual
acuity or color blindness will have a hard time understanding color as the only visual cue, show an action, or prompt a response Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent fermentum at nunc eget ultrices. Sed malesuada ante turpis, vitae auctor dui dictum non. Duis id mi in arcu rutrum auctor at vitae nulla. Aliquam mollis nisl magna, id congue ligula dictum ut. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent fermentum at nunc eget ultrices. Sed malesuada ante turpis, vitae auctor dui dictum non. Duis id mi in arcu rutrum auctor at vitae nulla. Aliquam mollis nisl magna, id congue ligula dictum ut. In text link -
30 Touch Targets A minimum target size of 45 pixels
wide 45 pixels tall a range of 12 to 48 pixels is the optimal button spacing 45px -
31 Touch Targets Instead of having to click only on
the checkbox or radio button, be able to select them by clicking on the label as well -
33 Column Layout If a form is in a single
column, the path to completion is a straight line down the page -
34 Form Fields Labels Labels tell the user the purpose
of the field Placeholder text is a poor replacement for a visual label Labels should remain even after completing the field Phone Number 647 476 3842 Phone Number 647 476 3842 phone number phone number -
35 Don’t Rely On Just Colour Name Phone Number Claudia
Yuen 647-990-37 Name Phone Number Claudia Yuen 647-990-4A invalid phone number -
37 Video Autoplaying animations or video that includes music or
audio completely obscures the speech of the screen reader Provide a global pause function on any media element. If the device has a keyboard, ensure that pressing the Space key can pause playback -
38 Video Videos should have transcripts and/or subtitles No element
on the webpage should flash or flicker over three times per second. Anything above that threshold might trigger seizures -
39 Use Live Text Use actual text that is styled
with code rather than image-based text presentation. Live text is much more flexible than images with text baked in: It can be resized without losing clarity, and background and text colors can be modified Screen readers and other assistive technologies cannot read text that’s contained inside an image Flat jpg Live text styled with css -
40 Alt Text Invisible description of images which are read
aloud to blind users on a screen reader. The description should present the content and function of the image -
41 Alt Text Most screen readers do not read more
than 125 characters of text. Including “image of” or “picture of” in alt text is unnecessary. -
42 Alt Text Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Pellentesque laoreet tellus in sodales lacinia. Donec congue lorem nulla Decorative images do not present important content, are used for layout or non-informative purposes -
43 Principles Perceivable Can I consume content on my site
in different ways? (Having closed captions for a video, for example) Operable Can the site function without confusion and without the use of a mouse or complex interactions? Understandable Can a user understand how the user interface of the site functions and the information on the site? Robust Can different assistive devices (screen readers, for example) understand the website? -
44 Resources https://www.w3.org https://webaim.org/intro/ https://material.io/design/usability/accessibility.html#color-contrast https://www.wuhcag.com/wcag-checklist/ http://accessibility.voxmedia.com/ https://www.nvaccess.org/ https://webaim.org/resources/contrastchecker/ https://www.brandwood.com/a11y/
http://colororacle.org/ https://www.smashingmagazine.com/2017/06/designing-efficient-web-forms/ https://uxplanet.org/a-primer-to-web-accessibility-for-designers-2c548448c612 https://material.io/ Guidelines Checklists Screen Readers Colour Checker Further Reading