Focus People, Focus!

A presentation at a11yTO in October 2022 in Toronto, ON, Canada by Karen Hawkins

Slide 1

Slide 1

Focus People, Focus! Focusing on focus states for designers. December 12, 2022

Slide 2

Slide 2

Speaker Karen Hawkins, CPACC eSSENTIAL Accessibility Head of Accessible User Experience Design khawkins@essentialaccessibility.com 2

Slide 3

Slide 3

Learning objectives 1 Understand the importance of focus states, who they are designed for and why. 2 Learn the accessibility requirements of focus states for some common components, including buttons, links, and other actionable elements. 3 Connect the focus state designs to the Web Content Accessibility Guideline Success Criteria. 3

Slide 4

Slide 4

What is a focus state? 4

Slide 5

Slide 5

Hover State Focus State Clearly indicate upon Clearly indicate which which page element page element has the mouse hovers keyboard focus 5

Slide 6

Slide 6

Why focus on focus states? 6

Slide 7

Slide 7

Design teams traditionally only design mouse experiences 7

Slide 8

Slide 8

Holistically design all states of molecules and atoms Atoms Set of states per molecule Organism Molecule Source: Atomic Design by Brad Frost 8

Slide 9

Slide 9

Focus on Design Interactivity 9

Slide 10

Slide 10

The focus indicator is obvious “you are here” feedback 10

Slide 11

Slide 11

Don’t rely solely on the focus indicator 11

Slide 12

Slide 12

Think “obviousness”. 12

Slide 13

Slide 13

Holistically design important button states Button design considerations • Text size • Text color • Button color • Background color • Borders / Shadows • Target size • Secondary indicator not reliant on color 13

Slide 14

Slide 14

Holistically design important link states Link design considerations • Text size • Text color • Background color • Target size • Secondary indicator not reliant on color 14

Slide 15

Slide 15

Consider links in a paragraph Additional design considerations for links contained in a paragraph • Link text color to background color: 4.5 to 1 • Paragraph text color to background color: 4.5 to 1 • Link text to paragraph text: 3 to 1 15

Slide 16

Slide 16

Aim for consistent styling 16

Slide 17

Slide 17

Holistically design important control states Control design considerations • Text size (if applicable) • Text color (if applicable) • Border color (if applicable) • Control color • Background color • Target size • Secondary indicator not reliant on color 17

Slide 18

Slide 18

Continue to aim for consistent styling 18

Slide 19

Slide 19

Know when to extend the styling 19

Slide 20

Slide 20

Design all states Possible states • Selected / Activated • Inactive / Disabled • Clicked / Pressed • Dragged • Loading / Processing • Expanded / Collapsed • Open / Closed • Etc. 20

Slide 21

Slide 21

Design for additional accessibility use cases • Text at 200% • Lengthy text at 200% • Large text • With icons • Linking offsite • Skip link • Error states • Mobile version (responsive / 1 column / zoomed at 400%) • Etc. 21

Slide 22

Slide 22

Ensure they work on all your backgrounds 22

Slide 23

Slide 23

Design focus interactivity • Think through and document the interactivity and resultant behavior when an element receives focus, for example: o How is content exposed using a keyboard? o How does focus move from the trigger to the revealed content using a keyboard? o How is the revealed content dismissed using a keyboard? • Ensure context remains when an element receives focus 23

Slide 24

Slide 24

Related success criteria Design of focus state Interactivity on focus • 1.4.1 (links in paragraph) • 1.4.2 (audio control) • 1.4.3 (contrast minimum) • 1.4.13 (content on hover or focus) • 1.4.11 (non-text contrast) • 2.1.2 (no keyboard trap) • 2.4.1 (bypass blocks) • 2.2.1 (timing adjustable) • 2.4.7 (focus visible) • 2.2.2 (pause, stop, hide) • 4.1.2 (name, role, value) • 2.5.1 (pointer gestures) • 2.5.4 (motion actuation) • 3.2.1 (on focus) • 3.2.2 (on input) • 4.1.3 (status messages) 24

Slide 25

Slide 25

Focus on the focus states. 25

Slide 26

Slide 26

Contact information Karen Hawkins, CPACC eSSENTIAL Accessibility Head of Accessible User Experience Design khawkins@essentialaccessibility.com 26

Slide 27

Slide 27

Thank You essentialaccessibility.com