Can You See That OK?

A presentation at CSSConf AU in March 2018 in Melbourne VIC, Australia by Julie Grundy

Slide 1

Slide 1

Can You See That OK?

Tips and techniques for supporting users with low vision

Slide 2

Slide 2

9% of Australians live with low vision

Vision impairments between legal blindness and able to be adapted to with standard glasses.

Slide 3

Slide 3

Demo site

Slide 4

Slide 4

Zoom tool in the browser settings

Slide 5

Slide 5

Zooming creates horizontal scrollbars

Users must scroll back and forth to read the whole site

Slide 6

Slide 6

Video of zooming on the fixed site

When the zoom is applied, the layout flips from a desktop style to a single-column mobile style as well as increasing the size of the content.

Slide 7

Slide 7

Flip to mobile on zoom with em-based responsive design

@media(min-width: 60em) { header { display: flex; text-align: left;} }

Slide 8

Slide 8

As for previous slide, with em units highlighted

Slide 9

Slide 9

Video of text resizing on original site

Text is cut off, overlaps with other text, or disappears into a matching background colour.

Slide 10

Slide 10

Allow containers to resize along with text

Two CSS statements for the feature stories. The original has a height of 280 pixels, the fixed version has that statement commented out.

Slide 11

Slide 11

Check background styles

Two CSS statements for the hero story. The original has a background image set with a shorthand property. The fixed version specifies that it does not repeat, and falls back to a background colour which contrasts with the text.

Slide 12

Slide 12

Video of text resizing on the fixed site

The containers for the text have now increased in size to surround the larger text and the background image does not repeat.

Slide 13

Slide 13

Colour contrast is essential

Colour Accessibility Workflows by Geri Coady for A Book Apart

Slide 14

Slide 14

Text is hard to contrast over a varied background image

The text 'Winter specials' has enough contrast with the sky but not with the rock when it is set in dark blue text.

Slide 15

Slide 15

Changing the colour might not help

'Winter specials' is now in white, which contrasts with the rock but not the sky.

Slide 16

Slide 16

Borders and drop-shadows can help

A drop-shadow on white 'Winter Specials' text shows the outline of the letters more easily.

Slide 17

Slide 17

Semi-opaque panels can help

The text 'Winter Specials' now has a panel of translucent blue behind it. The photo still shows through but not as brightly, giving it more contrast with the white text.

Slide 18

Slide 18

Reverse the colours

The same panel and text but now the panel is translucent white and the text is blue.

Slide 19

Slide 19

Fixed site with text over images

'Winter specials' has a drop-shadow and the feature stories use translucent panels.

Slide 20

Slide 20

Colour is often used to indicate special items in a group

The selected menu item uses a different colour with enough contrast to the background.

Slide 21

Slide 21

Check for colour-only indicators with a greyscale filter

body { filter: grayscale(100%); }

Slide 22

Slide 22

Demo site with greyscale filter applied

The highlighted menu item can be read, but doesn't look any different from the other menu items.

Slide 23

Slide 23

Use changed shapes to distinguish menu items

nav a:link, nav a:visited { color: #3e4d5e; background-color:#f2f7fd; } nav a:hover, nav a:focus { /* reverse colors to create a block effect / color:#f2f7fd; background-color:#3e4d5e; } nav a[aria-page="current"] { background: url(arrow.png) top center no-repeat; / or use a border effect */ }

Slide 24

Slide 24

Greyscale site with reverse-colour style on selected menu item

The colours on the selected menu item being the opposite to the other items creates a block shape which can be seen even without colour information.

Slide 25

Slide 25

Colour version of site with block-style on selected menu item

The block style looks nice in colour because it is using the same colours as the rest of the menu, just arranged differently.

Slide 26

Slide 26

Greyscale version of lower half of site

Products and promotional blocks

Slide 27

Slide 27

Greyscale lower half with links circled to show their position

The links have no underlines so they look the same as plain text.

Slide 28

Slide 28

Colour alone is insufficient to indicate links

The same paragraph in colour and greyscale - the link can only be seen in the colour version.

Slide 29

Slide 29

Underlines are reliable indicators for most people

The same paragraph in colour and greyscale but now the link is underlined and can be seen in both versions.

Slide 30

Slide 30

Make underlines prettier with skip-ink

main a { text-decoration: underline; text-decoration-skip-ink: auto; }

Slide 31

Slide 31

Video of changing themes on Windows desktop

User opens PC Settings, selects Ease of Access, then High contrast. User then switches from default theme to High Contrast 1 theme. The screen changes from a multi-coloured interface to a black background with yellow text.

Slide 32

Slide 32

Video of the demo site in high contrast

The site is now entirely black with yellow text and blue links. The logo, icons and product images are shown but the background images and colours are missing.

Slide 33

Slide 33

Demo site with login modal open in high contrast

The modal has turned the whole screen black except for 4 lines of text.

Slide 34

Slide 34

Modal in colour

The modal uses colour to dim most of the site and show a small modal with a form to enter username and password, a submit button and a close button.

Slide 35

Slide 35

Add borders for high contrast modes

input, button, #modal-container, .modal-close, .nav-store a[aria-current="page"] { border: 1px solid transparent; }

Slide 36

Slide 36

Fixed modal in high contrast

The screen is mostly black still, but the modal, form inputs and buttons have yellow borders which make them easy to see.

Slide 37

Slide 37

Final fixed site

It looks very similar to the original site.

Slide 38

Slide 38

Thankyou

Notes and demo: www.juliegrundy.id.au/links/low-vis/notes.html