booster 2017 - from accessibility n00b to pro in 1.5 hrs

48
FROM ACCESSIBILITY N00B TO PRO IN 1.5 HOURS BOOSTER 2017 VEGARD HAUGSTVEDT ITERA

Upload: vegard-haugstvedt

Post on 21-Mar-2017

93 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

FROM ACCESSIBILITY N00B TO PRO IN 1.5 HOURS

BOOSTER 2017

VEGARD HAUGSTVEDTITERA

Page 2: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

«THE MAIN RULE IS THAT ALL IT-SOLUTIONS IN NORWAY MUST BE ACCESSIBLE. THIS INCLUDES BOTH WEBSITES, SELF-SERVICE MACHINES AND SIMILAR SYSTEMS. BOTH

PRIVATE AND PUBLIC BUSINESSES, TEAMS AND ORGANIZATIONS MUST FOLLOW THE RULES.»

– DIFI.NO

Page 3: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

WCAG 2.0

• Principles

• Guidelines

• Success Criteria

• Techniques

/ 3

Page 4: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Core principals of accessibility – WCAG 2.0

• Perceivable

• Operable

• Understandable

• Robust

/ 4

Page 5: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

1. Perceivable

1. Text alternatives

2. Time-based Media

3. Adaptable

4. Distinguishable

/ 5

Page 6: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

2. Operable

1. Keyboard accessible

2. Enough time

3. Seizures

4. Navigable

/ 6

Page 7: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

3. Understandable

1. Readable

2. Predictable

3. Input assistance

/ 7

Page 8: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

4. Robust

1. Compatible

/ 8

Page 9: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

WHO DO WE BUILD FOR?CONSEPT PHASE

Page 10: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

«Why should we bother with accessibility? As far

as we know, none of our users are blind…» - Anonymous client

/ 10

Page 11: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Employment among people with significant vision loss

• 38.3% of disabled users of screen readers are

employed full-time*

• 73.4% of non-disabled users of screen readers are

employed full-time*

WebAIM Screen Reader User Survey #6 (2015)

/ 11

Page 12: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Who are your users?

General – the average user• Demographics• Job responsibilities and tasks• Frequency of use• Hardware• Environment• Computer experience• Web application experience• Task knowledge

/ 12

Page 13: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

User group: Retirees

• Age: 57-96

• 60% male, 40% female

• Reduced vision

• Reduced motor skills

• … and so on

Data from HRWeb (US)

/ 13

Page 14: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Personas

Vegard Haugstvedt

29 years old

Developer

Red-green colour blind

Doesn’t leave home without his phone, and has a computer within reach

whether he is at work or at home. Loves new gadgets, and has a dream of

making his day-to-day life as automated as possible. He recently became a

father, and therefore frequently has to use mobiles and laptops with only one

hand while carrying his son. Uses his phone in bright daylight and while in dark

rooms at night.

/ 14

Page 15: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Who are your users?

Specific – «real» users

• Name

• Image

• Age

• Profession

• Personal traits

/ 15

Page 16: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

TASK 1: PERSONAS

/ 16

Page 17: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Task 1: Personas

• Create a persona that incorporates accessibility concerns

• You should at least specify the following:– Nature of limitations– Special tools or assistive technology used– Experience and skills with the relevant tools and technologies– Frequency of use of relevant tools or assistive technologies

/ 17

Page 18: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

DESIGNING FOR A BETTER WEB

DESIGN PHASE

Page 19: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Color contrasts

• Normal text: 4.5:1 contrast

• Large text: 3:1 contrast

• Be wary of text overlaying images

/ 19

Page 20: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Click areas

• Buttons

• Checkboxes

• Links (also inside texts)

• Make as large of an area as possible clickable

• Make it intuitive what area is clickable

/ 20

Page 21: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Text formatting

70/ 21

Page 22: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Sliders

• Inherently inaccurate

• Bad UX for touchscreens as well

• Use as an enhancement

– Provide alternative inputs

– Make the slider-button accessible for keyboard users

/ 22

Page 23: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Ease of navigation

• “Every click or interaction should take the user closer to their goal

while eliminating as much of the non-destination as possible.” *

• Make sure focus is clearly shown!

• Stop removing link underlining…

* http://grundyhome.com/blog/archives/2009/01/31/breaking-the-law-the-3-click-rule/

/ 23

Page 24: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

TASK 2: DESIGN REVIEW

/ 24

Page 25: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Task 2: Design review

1. Have a look at http://nba.com/

2. Discuss the following with the person next to you

– Imagine how this page would be experienced if you could not see

3. Try navigating with a keyboard (using TAB)

– Do you feel confident on where you will be taken if you click enter?

4. How would you have solved this functionality in a more accessible way?

/ 25

Page 26: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

SEMANTICS AND WAI-ARIA

DEVELOPMENT PHASE

Page 27: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

HTML5 Landmarks and sectioning elements

• Main (main)• Section (region)• Header (banner)• Footer (contentinfo)• Nav (navigation)• Aside (complementary)• Form (form)

/ 27

Page 28: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

HTML Headings

• H1, H2, H3, H4, H5, H6

• Provides structure to the page

• Allows the user to navigate quickly through the page

• How would your page would appear if you only heard the headings?

• Don’t use heading levels for styling purposes!

/ 28

Page 29: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Custom widgets vs. Native HTML elements?

• Always use the native HTML elements if there exists one.

• Avoid issues with browser compatibility, support for assistive technologies,

and so on.

/ 29

Page 30: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Images and videos

• Non-textual content

• Alt-attribute

• Beware of text over images

• … But do use them!

/ 30

Page 31: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Links and buttons

• Link- and button texts should be descriptive

• Links should visually differentiate themselves from regular text

– Underline and color

• Buttons should also respond to keyboard interactions

/ 31

Page 32: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Forms

• Avoid keyboard traps!

• Placeholders are not replacements for labels

• Make sure placeholders satisfy contrast requirements

/ 32

Page 33: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

TASK 3: HTML5 SEMANTICS

/ 33

Page 35: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

WAI-ARIA

Version 1.0 was published in 2014

• Roles (describes type of widget or structure)

• State

• Live regions

• Drag-and-drop sources and targets

/ 35

Page 36: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

WAI-ARIA roles

• Used to declare user interface elements

• Provides semantics for assistive technologies – how this element should be

handled

• Still needed even with HTML5

/ 36

Page 37: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

WAI-ARIA state

• Used to communicate input states to assistive technologies

• Most of them are handled natively by the user agents

• Set values with JavaScript for custom elements

/ 37

Page 38: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

WAI-ARIA live regions

• Used to define areas of the webpage that will change

• Informs screen readers whether and how to interrupt users with changes

• Auto-loading in comment fields, calculated values, conditional input elements,

etc

• ‘aria-live’ sets how often to alert the user of changes.

• ‘aria-controls’ associates a control with the region it controls.

• ‘role’ has some predefined live regions:

– log, status, alert, progressbar, marquee and timer

/ 38

Page 39: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

AUTOMATIC VALIDATION AND USER TESTING

TEST PHASE

Page 40: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Ways of doing accessibility testing

• Browser validators

• Command line tools

• User testing

/ 40

Page 41: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Browser validators

• Chrome Developer Tools

• Ainspector (Firefox)

• WAVE

/ 41

Page 42: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Automated tools

/ 42

Page 43: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

User testing

/ 43

Page 44: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

TASK 5: ACCESSIBILITY VALIDATION

/ 44

Page 45: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Task 5: Accessibility validation

1. Download a browser accessibility testing tool for your browser:

– Chrome: Accessibility Developer Tools

– Firefox: Ainspector

– IE (or Chrome): WAVE Evaluation Tool

2. Try to validate your company’s website

– What did you find?

/ 45

Page 46: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

WHAT HAVE WE LEARNED?

Page 47: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

Some useful resources

• Difi: https://uu.difi.no/ • Blindeforbundet: https://www.blindeforbundet.no/universell-utforming• WCAG quick-reference: https://www.w3.org/WAI/WCAG20/quickref/• Mozilla a11y resources:

https://developer.mozilla.org/en-US/docs/Web/Accessibility• Integrating a11y in design: http://www.uiaccess.com/accessucd/• Writing accessible HTML:

https://medium.com/alistapart/writing-html-with-accessibility-in-mind-a62026493412

• WAI-ARIA: https://www.w3.org/TR/wai-aria/introduction• ARIA roles: http://www.informit.com/articles/article.aspx?p=2464970• W3C a11y tutorials: https://www.w3.org/WAI/tutorials/• Blindness statistics: https://nfb.org/blindness-statistics• WebAIM survey: http://webaim.org/projects/screenreadersurvey6/• NVDA keyboard shortcuts: http://webaim.org/resources/shortcuts/nvda

/ 47

Page 48: Booster 2017 - from accessibility n00b to pro in 1.5 hrs

02.05.2023@IT_VEGARD / #BOOSTERA11Y

THANK YOU FOR ATTENDING!

/ 48