Responsive Web Design for Universal Access 2016

56
1 Responsive Web Design for Universal Access Image: http://mashable.com/2012/12/11/responsive- web-design/ Kate Walser CX Insights [email protected]@kwalser Slides: http://www.slideshare.net/kwalser

Transcript of Responsive Web Design for Universal Access 2016

Page 1: Responsive Web Design for Universal Access 2016

1

Responsive Web Design for Universal Access

Image: http://mashable.com/2012/12/11/responsive-web-design/

Kate WalserCX [email protected] • @kwalser

Slides: http://www.slideshare.net/kwalser

Page 2: Responsive Web Design for Universal Access 2016

2

Speaker – Kate Walser

- 18 years in usability, accessibility and user experience design- Member of TEITAC, or Section 508 / Section 255 refresh

committee- Principal consultant at CX Insights, the user experience

division of Tritus Technologies, Inc.- Originally from upstate NY, now call Fairfax, VA (near DC) home- Design websites, applications to be responsive

Page 3: Responsive Web Design for Universal Access 2016

3

Slides

http://www.cxinsights.com/print/2016/RWD.pptxhttp://www.slideshare.net/kwalser

Page 4: Responsive Web Design for Universal Access 2016

4

Challenge:“We want a mobile website”

Page 5: Responsive Web Design for Universal Access 2016

5

Original mobile strategyTwo sites

- Two sites – – Server checks browser / device– Present that site

Page 6: Responsive Web Design for Universal Access 2016

6

Responsive One site, Multiple views

Photo credit: http://sixrevisions.com/mobile/methods-mobile-websites/

Page 7: Responsive Web Design for Universal Access 2016

7

AgendaTopic Time DurationIntroductions 8:30 – 8:40 10 minsWhat is responsive design and how does it work

8:40 – 8:55 15 mins

Responsive design & accessibility

8:55 – 9:05 10 mins

Group exerciseLook at AustinTexas.gov on your mobile phone

9:05 – 9:20 15 mins

Planning a responsive design 9:20 – 9:35 15 minsGroup exerciseMake TXHHS responsive

9:35 – 9:50 15 mins

Discussion, Wrapup 9:50 – 10:00 10 mins

Page 8: Responsive Web Design for Universal Access 2016

8

What is responsive design?

Page 9: Responsive Web Design for Universal Access 2016

9

Elements have a set width, like 600 pixels wide, and don’t adjust for device size, so content is either cut off or really small and hard to read. Images do not resize either.

Non-responsive

Page 10: Responsive Web Design for Universal Access 2016

10

At a glimpse

Photo credit: Media Queries Gallery, http://mediaqueri.es/

Phone, kindle, tablet, desktop views of TheNextWeb

Page 11: Responsive Web Design for Universal Access 2016

11

In responsive web design, we use the same content and adjust it to best fit the content and features for that device. Think of pruning a bush – when done well, after trimming back the “overgrown” areas, the bush still resembles the original bush, but is cleaner and more beautiful.

Goals

Page 12: Responsive Web Design for Universal Access 2016

http://www.texas.gov/Full size (Desktop)

Page 13: Responsive Web Design for Universal Access 2016

13

http://www.texas.gov/Landscape – tablet (iPad, Samsung Galaxy Tab)

Page 14: Responsive Web Design for Universal Access 2016

http://www.texas.gov/Smart phone (Galaxy III, iPhone, Android)

Page 15: Responsive Web Design for Universal Access 2016

15

Demo

Page 16: Responsive Web Design for Universal Access 2016

16

How does it work?

Page 17: Responsive Web Design for Universal Access 2016

17

3 main elements1. Fluid grid and adjustable widths

e.g., column width = 45%, 25ems, or 6 columns wide

2. Scalable imagese.g., image is 24em x 12em (vs. 248px x 124px) for desktop,

and 12em x 6em for mobile

3. Media queries (check device / browser width)e.g., if the device width (or the max-width of the viewable area) is

480px or 30em wide, then show this version

Page 18: Responsive Web Design for Universal Access 2016

18

Wireframes show web page elements and how they look, where they go on different devices“Media Queries,” by Juan ArreginSource: http://dribbble.com/shots/185755-Media-Queries

Stack, hide, or change size of items

“Media Queries,” by Juan ArreginSource: http://dribbble.com/shots/185755-Media-Querie

Page 19: Responsive Web Design for Universal Access 2016

19

Adjust via cascading style sheet (CSS) rules

/* Mobile */#welcome {width: 100%;}.buttons {padding:0.4em 0.5em;margin:0.5em;}.decoration {display:none;}

@media only screen and (min-width: 48em) {/* Desktop and landscape tablet – 768px wide and up*/#welcome {width: 62.5%;}.buttons {padding:0.25em 0.5em;margin:0.25em;}.decoration {display:inline;width:1.5em;height:1em;}

}

Page 20: Responsive Web Design for Universal Access 2016

20

Looking at the code

http://www.austintexas.gov

Page 21: Responsive Web Design for Universal Access 2016

21

Another Example

http://stuffandnonsense.co.uk/

Page 22: Responsive Web Design for Universal Access 2016

22

Responsive and improved access

Page 23: Responsive Web Design for Universal Access 2016

23

Challenge 1Hard-to-click links

Page 24: Responsive Web Design for Universal Access 2016

24

Adjust CSS to make larger “touch” targets

Page 25: Responsive Web Design for Universal Access 2016

25

Challenge 2“Noise,” “fluff” hinder screen readers

http://www.nhl.com/

Page 26: Responsive Web Design for Universal Access 2016

26

Improve readability for all devices

Use responsive design to hides decorations.decoration, .full-suite {display:none}

Use for both screen readers and responsive version<link rel="stylesheet" type="text/css" media="speech" href="minimal.css" />

<link rel="stylesheet" type="text/css" media="screen and (max-width:30em)" href="minimal.css" />

Page 27: Responsive Web Design for Universal Access 2016

27

Challenge 3Many tab stops before content

Multiple navigation elements precede the content on the WorldWildlife.org websiteWorld Wildlife Fund

Desktop version

Page 28: Responsive Web Design for Universal Access 2016

28

Since the AustinTexas.gov uses a responsive design, at narrower widths, the submenus are hidden, making it easier for users to get to main section options or content.

Collapsed navigation can* mean fewer tab stops to reach content

*The WorldWildlife.org website doesn’t adjust CSS to use display:none or accessible rich Internet application (ARIA) standards to “hide” collapsed sub-options from navigation / screen readers unless the user chooses it.

Page 29: Responsive Web Design for Universal Access 2016

29

With drop-down and complex menus, it can be hard to find option you need. Menu doesn’t stay open to let users use ctrl+f to find nav.

Challenge 4Finding needed option in complex menus

Page 30: Responsive Web Design for Universal Access 2016

30

The alternative presentation often used for mobile navigation drawers displays all or top navigation options in a list. Users can then use ctrl+F to find the option they need more easily.

Mobile nav drawers can show all options with ability to search (ctrl+f)

Page 31: Responsive Web Design for Universal Access 2016

31

Challenge 5Images that degrade on zoom

Images: http://coding.smashingmagazine.com/2012/01/16/resolution-independence-with-svg/

Images designed at one resolution degrade as users, especially those with screen magnifiers, increase their screen magnification.

Page 32: Responsive Web Design for Universal Access 2016

32

Use responsive, scalable images

Scalable vector graphics used for responsive web designs also improve screen usage for those with visual impairments.

Page 33: Responsive Web Design for Universal Access 2016

33

Challenge 6Surprise content

Images:

Images designed at one resolution degrade as users, especially those with screen magnifiers, increase their screen magnification.

ADD SCREENSHOT OF MY AIR – original – prod?

Page 34: Responsive Web Design for Universal Access 2016

34

Surprise content

Scalable vector graphics used for responsive web designs also improve screen usage for those with visual impairments.

ADD SCREENSHOT OF MY AIR – link then link + expanded

Page 35: Responsive Web Design for Universal Access 2016

35

Group Exercise (15 minutes)Take a look – AustinTexas.gov

- Visit the AustinTexas.gov website on a mobile device- How does it compare to the desktop version?- What works? What could be improved?

Page 36: Responsive Web Design for Universal Access 2016

AustinTexas.gov: How does it compare to the desktop version? What works?

Page 37: Responsive Web Design for Universal Access 2016

37

Planning a responsive design

Page 38: Responsive Web Design for Universal Access 2016

38

1. Consider users, contexts, goals

Page 39: Responsive Web Design for Universal Access 2016

39

ItalioKitchen.com’s website hides the gallery of different dishes when a user visits from a mobile site. Instead the menu, locations, news, and specials take center stage.

Example: italiokitchen.com

Page 40: Responsive Web Design for Universal Access 2016

40

2. Define top tasks per context

Page 41: Responsive Web Design for Universal Access 2016

41

3. Prioritize features & content

1

4

3 5

2

2

Page 42: Responsive Web Design for Universal Access 2016

42

4. Think “mobile first”, choose breakpoints*Start small and increase width until content starts to look suboptimal.

Google Analytics reports include Mobile reports. Check the Devices section, and drill down by screen resolution or browser as a secondary dimension to see what users are using to visit your site.

Page 43: Responsive Web Design for Universal Access 2016

43

Quick sketches can be enough to create the responsive design.

5. Decide if / how layout changes

Page 44: Responsive Web Design for Universal Access 2016

44

6. Describe behavior and style rules and translate to CSS rules

Min-width

What it means Behavior / Style Rules

Less than 50em

At widths less than 50em (e.g., 50em x ~12px/em = 600px), article and aside / sidebar should each span the full width.

article {}aside {}

50em Once the width reaches 50ems (~600px), then resize the article so it’s occupies about 2/3 of the container width, and position it on the left, with the aside / sidebar on the right.

article {float: left;width: 66.3333%; }

aside {float: left;width: 66.3333%; }

Page 45: Responsive Web Design for Universal Access 2016

45

7. Consider interactions, wide itemsEspecially tables, dialogs, drop-down menus, pop-up help

Page 46: Responsive Web Design for Universal Access 2016

46

8. Adjust padding, positioning for hard to reach / touch items

http://www.fairfaxcounty.gov/library/

Page 47: Responsive Web Design for Universal Access 2016

47

Group Exercise (15 minutes)Texas Health & Human Services Commissionhttp://www.hhsc.state.tx.us/index.shtml

Page 48: Responsive Web Design for Universal Access 2016

http://www.hhsc.state.tx.us/

Page 49: Responsive Web Design for Universal Access 2016

49

Tools & Resources

Page 50: Responsive Web Design for Universal Access 2016

Google Chrome Browser, Developer Tools – View > Developer > Developer ToolsFirefox Developer Tools – Tools > Web Developer > Responsive Design View

Browser Developer Tools

Google Chrome Firefox

Page 51: Responsive Web Design for Universal Access 2016

51

Responsive patterns

http://bradfrost.github.io/this-is-responsive/patterns.htmlhttp://bradfrost.github.io/this-is-responsive/resources.html#viewport-testing

Page 52: Responsive Web Design for Universal Access 2016

Demo: http://bradfrost.com/demo/ish/Source code: https://github.com/bradfrost/ish.

ish.

Page 53: Responsive Web Design for Universal Access 2016

53

http://lab.maltewassermann.com/viewport-resizer/

Page 54: Responsive Web Design for Universal Access 2016

54

http://screenqueri.es/

Screenqueri.es gives you a pixel grid to view and check your responsive design on different devices.

Page 55: Responsive Web Design for Universal Access 2016

55

Summary

- Combine media queries, scalable images, adjustable widths

- Identify the main goals, contexts, and reasons users will visit your site and build up from those (mobile first)

- Design accordingly

Page 56: Responsive Web Design for Universal Access 2016

56

ContactKate [email protected] • @kwalser • +1 (571) 281-2626

To learn more- “Responsive Web Design,” by Ethan Marcotte

Article: http://alistapart.com/article/responsive-web-designBook: http://www.abookapart.com/products/responsive-web-design

- “Logical Breakpoints for Your Responsive Design,” by Vasilis van Gemerthttp://www.smashingmagazine.com/2013/03/01/logical-breakpoints-responsive-design/

- ResponsiveDesign.is