Text is cut off, overlaps with other text, or disappears into a matching background colour.
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
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
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
Colour contrast is essential
Colour Accessibility Workflows by Geri Coady for A Book Apart
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
Changing the colour might not help
'Winter specials' is now in white, which contrasts with the rock but not the sky.
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
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
Reverse the colours
The same panel and text but now the panel is translucent white and the text is blue.
Slide 19
Fixed site with text over images
'Winter specials' has a drop-shadow and the feature stories use translucent panels.
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
Check for colour-only indicators with a greyscale filter
body {
filter: grayscale(100%);
}
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
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
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
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
Greyscale version of lower half of site
Products and promotional blocks
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
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
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
Make underlines prettier with skip-ink
main a {
text-decoration: underline;
text-decoration-skip-ink: auto;
}
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
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
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
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.