1 of 95

Designing for Accessibility and Inclusion

2 of 95

Steven Lambert

stevenklambert.com�@StevenKLambert�steven@sklambert.com

http://bit.ly/designing-for-a11y

3 of 95

Is this design accessible?

4 of 95

Accessibility is solved at the design stage

5 of 95

What does it mean to design for accessibility?

6 of 95

7 of 95

“Good [accessible] design happens when you view your design from [as] many perspectives, or lenses,” as possible

8 of 95

A lens is “a narrowed filter through which a topic can be considered or examined.”

9 of 95

Lenses of Accessibility

  • Animation & Effects
  • Audio & Video
  • Color
  • Controls
  • Font
  • Images & Icons
  • Keyboard
  • Layout
  • Material Honesty
  • Readability
  • Structure
  • Time

10 of 95

Lens of Animation & Effects

11 of 95

Fast flashing (flashes more than 3 times a second), or high intensity effects or patterns can cause seizures (photosensitive epilepsy)

12 of 95

Parallax or motion effects can cause users to feel dizzy or experience vertigo (vestibular sensitivity)

13 of 95

Users are easily distracted by constant motion, especially to users who have difficulty concentrating

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc luctus, ligula vel finibus molestie, ipsum augue mollis arcu, id rutrum dui nibh ut diam.

Pellentesque a ex ornare, mattis nisi nec, ornare ante. Nam in tellus semper metus placerat dignissim id aliquam massa. Nullam consectetur odio non quam ultrices, id interdum nulla egestas.

14 of 95

Animation isn’t bad, just understand why you’re using it and how to design for safer animations

15 of 95

Ask Yourself these Questions

  • Are there any effects that could cause a seizure?
  • Are there any animations or effects that could cause dizziness or vertigo through use of motion?
  • Are there any animations that could be distracting by constantly moving, blinking, or auto-updating?
  • Is it possible to provide controls or options to stop, pause, hide, or change the frequency of any animations or effects?

16 of 95

Lens of Audio & Video

17 of 95

Autoplay videos and music. Don’t do it!

18 of 95

Videos should have transcripts and/or subtitles so users can consume it in a way that works best for them

19 of 95

Ask Yourself these Questions

  • Are there any audio or video that could be annoying by autoplaying?
  • Is it possible to provide controls to stop, pause, or hide any audio or videos that autoplay?
  • Do videos have transcripts and/or subtitles?

20 of 95

21 of 95

Lens of Color

22 of 95

Users without color blindness can see the difference

23 of 95

But users with Deuteranopia can’t

24 of 95

Which form field has the error?

25 of 95

26 of 95

Add a non-color identifier (icon, text, pattern, etc.)

27 of 95

Poor contrast between foreground and background make it harder to see for users with low vision, using a low-end monitor, or just in direct sunlight

28 of 95

Also ensure your design works in different variations of Windows High Contrast mode

29 of 95

Ask Yourself these Questions

  • If the color was removed from the design, what meaning would be lost?
  • How could I provide meaning without using color?
  • Are any colors oversaturated or have high contrast that could cause users to become overstimulated or uncomfortable?
  • Does the foreground and background color of all text, icons, and focus indicators meet contrast ratio guidelines of 4.5:1?

30 of 95

Lens of Controls

31 of 95

26px minimum touch target (44px recommended), 8px space between elements, visual size should be 60-100% of touch target size

32 of 95

Multiple touch targets all within a single click region can lead to touch errors

33 of 95

With no label, it’s hard to tell what the form field is after text is entered

34 of 95

Ask Yourself these Questions

  • Are any controls not large enough for someone to touch?
  • Are any controls too close together that would make it easy to touch the wrong one?
  • Are there any controls inside another control or clickable region?
  • Do all controls have a visible text label?

35 of 95

Lens of Font

36 of 95

The design should be flexible enough to allow users to increase font size, line height, or letter spacing to a comfortable reading level

37 of 95

Font styles that pose problems for users with Dyslexia

Small

ALL UPPERCASE

Italicized

Cursive

38 of 95

Ask Yourself these Questions

  • Is the design flexible enough that the font could be modified to a comfortable reading level by the user?
  • Is the font style easy to read?

39 of 95

Lens of Images & Icons

40 of 95

If this image was not viewable, how would you convey its information?

41 of 95

For the most part, you should describe the information of the image

42 of 95

Group

Data

A

9350

B

9450

C

9550

D

9650

E

9750

43 of 95

If this image was not viewable, how would you convey its information?

44 of 95

“It Depends!”

– Says everyone

Meaning depends on context, or how much textual information is already available that describes the information

45 of 95

What do these icons mean?

46 of 95

Always label icons with text so their meaning is understood

47 of 95

If the user can upload images, you should provide a way for the user to enter the alt text along with the image.

48 of 95

Ask Yourself these Questions

  • Does any image contain information that would be lost if it was not viewable?
  • How could I provide the information in a non-visual way?
  • If the image is controlled by the user, is it possible to provide a way for them to enter the alt text description?

49 of 95

Lens of Keyboard

50 of 95

A user using a keyboard typically uses the tab key to navigate to each control in sequence. (left to right, top to bottom). They must tab through all controls in order before they can get to the one they want.

51 of 95

By making the most important user flows nearer to the top of the tab order, we can help enable our users to be more efficient and effective.

52 of 95

Focus styles should always be visible or a user can become lost

53 of 95

Ask Yourself these Questions

  • What keyboard navigation order makes the most sense for the design?
  • How could a keyboard user get to what they want in the quickest way possible?
  • Is the focus indicator always visible and visually distinct?

54 of 95

Lens of Layout

55 of 95

Layout should have a meaningful and logical sequence

56 of 95

Layout should be resizable to a minimum of 320px, or 400% zoom, with no horizontal scroll bars

57 of 95

Users using a screen magnifier benefit when related content is in close proximity to one another

58 of 95

Keep content that is related or triggered by an action in close proximity to one another so a screen magnifier can see them

59 of 95

Ask Yourself these Questions

  • Does the layout have a meaningful and logical sequence?
  • What should happen to the layout when it’s viewed on a small screen or zoomed in to 400%?
  • Is content that is related or changes due to user interaction in close proximity to one another?

60 of 95

Lens of Material Honesty

61 of 95

Material honesty is an architectural design value that states that a material should be honest to itself and not be used as a substitute for another material

62 of 95

When applied to web design, material honesty means that one element or component shouldn’t look, behave, or function as if it were another element or component.

63 of 95

Can you tell which one of these will navigate you away from the page and which won’t?

64 of 95

Autocomplete menus that are more than just text completion are materially dishonest

65 of 95

Ask Yourself these Questions

  • Is the design being honest to the user?
  • Are there any elements that behave, look, or function as another element?
  • Are there any components that combine distinct behaviors into a single component? Does doing so make the component materially dishonest?

66 of 95

Lens of Readability

67 of 95

Complex language and walls of text can pose problems for users, especially users with cognitive disabilities or who aren’t fluent in the language

68 of 95

Paragraphs should focus on a single idea and keep sentences short.

69 of 95

Break up the content with headings, lists, or images

70 of 95

Ask Yourself these Questions

  • Is the language plain and simple?
  • Does each paragraph focus on a single idea?
  • Are there any long paragraphs or long blocks of unbroken text?
  • Are all headings, links, controls, and labels clear and descriptive?

71 of 95

Lens of Structure

72 of 95

A screen reader interacts with the structure (HTML) of the design

73 of 95

How would you know if this design was accessible to a user using a screen reader?

74 of 95

This means you’ll need to understand basic HTML tags and how a screen reader interacts with them

75 of 95

Landmark elements allow a screen reader to jump to important sections in the design

76 of 95

Headings allow a screen reader to get a high level overview of the page, as well as jump to any heading

77 of 95

Lists (<ul> or <ol>) group related items together, and allow a screen reader to easily jump from one item to another

78 of 95

<button>s tigger interactions on the current page while links (<a>) Navigate or retrieve information

79 of 95

Form <label>s are required to allow a screen reader to know what each form �field is

80 of 95

So what can we add to structural design that will help make the design more accessible?

81 of 95

Enhancing the design with headings and additional information allows screen readers to understand the visual hierarchy of the bracket

82 of 95

You need to make sure that the developer understands what structure you had in mind for the design, otherwise we’ll make everything a <div>.

83 of 95

Ask Yourself these Questions

  • Can I outline a rough HTML structure of my design?
  • How can I structure the design to better help a screen reader understand the content or find the content they want?
  • How can I help the person who will implement the design understand the intended structure?

84 of 95

Lens of Time

85 of 95

Users who need more time to perform an action should be able to adjust or remove a time limit when possible

86 of 95

Ask Yourself these Questions

  • Is it possible to provide controls to adjust or remove time limits?

87 of 95

How to use the Lenses

88 of 95

Start with a few at hand, and one at a time carefully analyze the design through a lens

89 of 95

Can use the lenses on the whole design

Animation & Audio

Audio & Video

Color

Controls

Font

Images & Icons

Keyboard

Layout

Material Honesty

Readability

Structure

Time

90 of 95

Audio & Video

Color

Images & Icons

Layout

Are there any audio or video that could be annoying by autoplaying?

Is it possible to provide controls to stop, pause, or hide any audio or videos that autoplay?

Do videos have transcripts and/or subtitles?

If the color was removed from the design, what meaning would be lost?

How could I provide meaning without using color?

Does the foreground and background color of all text, icons, and focus indicators meet contrast ratio guidelines of 4.5:1?

Does any image contain information that would be lost if it was not viewable?

How could I provide the information in a non-visual way?

If the image is controlled by the user, is it possible to provide a way for them to enter the alt text description?

Does the layout have a meaningful and logical sequence?

What should happen to the layout when it’s viewed on a small screen or zoomed in to 400%?

Is content that is related or changes due to user interaction in close proximity to one another?

91 of 95

92 of 95

Or at a component level

93 of 95

Lens of Structure

Can I outline a rough HTML structure of my design?

How can I structure the design to better help a screen reader understand the content or find the content they want?

How can I help the person who will implement the design understand the intended structure?

  • Landmark Elements (header, nav, main, and footer)�Allow a screen reader to jump to important sections in the design.
  • Headings (h1 - h6)Allow a screen reader to scan the page and get a high level overview. Screen readers can also jump to any heading.
  • Lists (ul and ol)Group related items together, and allow a screen reader to easily jump from one item to another.
  • Buttons�Trigger interactions on the current page.
  • Links�Navigate or retrieve information.
  • Form labels�Tell screen readers what each form input is.

94 of 95

Questions

95 of 95

Steven Lambert

stevenklambert.com�@StevenKLambert�steven@sklambert.com

http://bit.ly/designing-for-a11y