With great power comes
great responsibility
Uncle Ben
Slide 29
Slide 29 text
.
}
a11y_1
font-size
{
Slide 30
Slide 30 text
Zeit Online 20px
CSS-Tricks 21px
Medium 21px
CSS-Minsk-JS 34px/2.5vh
Jeffrey Zeldman 24px
Hugo Giraudel 20px
Slide 31
Slide 31 text
https://blog.marvelapp.com/body-text-small/
Slide 32
Slide 32 text
.
}
a11y_2
line-height
{
Slide 33
Slide 33 text
No content
Slide 34
Slide 34 text
No content
Slide 35
Slide 35 text
No content
Slide 36
Slide 36 text
.
}
a11y_3
text-align
{
Slide 37
Slide 37 text
No content
Slide 38
Slide 38 text
No content
Slide 39
Slide 39 text
No content
Slide 40
Slide 40 text
.
}
a11y_4
p: width
{
Slide 41
Slide 41 text
No content
Slide 42
Slide 42 text
No content
Slide 43
Slide 43 text
DIBSBDUFST
QFSMJOF
Slide 44
Slide 44 text
No content
Slide 45
Slide 45 text
{ }
p {
max-width: 65ch;
}
Slide 46
Slide 46 text
::
}
a11y_5
content
{
Slide 47
Slide 47 text
{ }
h2::after {
content: "DON'T DO THAT";
}
Slide 48
Slide 48 text
{ }
span::before {
content:"\00d7";
}
Slide 49
Slide 49 text
{ }
span::before {
content:"\00d7";
}
→
Slide 50
Slide 50 text
No content
Slide 51
Slide 51 text
No content
Slide 52
Slide 52 text
{ }
Slide 53
Slide 53 text
.
}
a11y_6
color & contrast
{
Slide 54
Slide 54 text
Colors & Color Contrast
Slide 55
Slide 55 text
Colors & Color Contrast
๏ ~285 million people are visually impaired
Slide 56
Slide 56 text
Colors & Color Contrast
๏ ~285 million people are visually impaired
๏ 39 million are blind and 246 million have low vision
Slide 57
Slide 57 text
Colors & Color Contrast
๏ ~285 million people are visually impaired
๏ 39 million are blind and 246 million have low vision
๏ 7 to 12% of men and less than 1% of women have some
form of color-vision deficiency
Slide 58
Slide 58 text
Colors & Color Contrast
๏ ~285 million people are visually impaired
๏ 39 million are blind and 246 million have low vision
๏ 7 to 12% of men and less than 1% of women have some
form of color-vision deficiency
๏ People dim their screens
Slide 59
Slide 59 text
Colors & Color Contrast
๏ ~285 million people are visually impaired
๏ 39 million are blind and 246 million have low vision
๏ 7 to 12% of men and less than 1% of women have some
form of color-vision deficiency
๏ People dim their screens
๏ People use their smartphones outside even when the
sun is shining
Slide 60
Slide 60 text
[…] enough contrast between text and
its background so that it can be read
by people with moderately low vision
[…]
https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html
Slide 61
Slide 61 text
Contrast ratio
Slide 62
Slide 62 text
Contrast ratio
๏ 1:1 same color for text and background
Slide 63
Slide 63 text
Contrast ratio
๏ 1:1 same color for text and background
๏ 1:21 black text on white background and vice versa
Slide 64
Slide 64 text
Contrast ratio
๏ 1:1 same color for text and background
๏ 1:21 black text on white background and vice versa
๏ Minimum ratio for normal text less than 24px 4.5:1
Slide 65
Slide 65 text
Contrast ratio
๏ 1:1 same color for text and background
๏ 1:21 black text on white background and vice versa
๏ Minimum ratio for normal text less than 24px 4.5:1
๏ Minimum ratio for bold text less than 19px 3:1
Slide 66
Slide 66 text
Contrast ratio
๏ 1:1 same color for text and background
๏ 1:21 black text on white background and vice versa
๏ Minimum ratio for normal text less than 24px 4.5:1
๏ Minimum ratio for bold text less than 19px 3:1
๏ Larger text: 3:1
Slide 67
Slide 67 text
Contrast ratio
๏ 1:1 same color for text and background
๏ 1:21 black text on white background and vice versa
๏ Minimum ratio for normal text less than 24px 4.5:1
๏ Minimum ratio for bold text less than 19px 3:1
๏ Larger text: 3:1
๏ Level AAA: At least 7:1 and 4.5:1
Slide 68
Slide 68 text
No content
Slide 69
Slide 69 text
No content
Slide 70
Slide 70 text
No content
Slide 71
Slide 71 text
No content
Slide 72
Slide 72 text
No content
Slide 73
Slide 73 text
No content
Slide 74
Slide 74 text
No content
Slide 75
Slide 75 text
No content
Slide 76
Slide 76 text
No content
Slide 77
Slide 77 text
Though age has indeed taken its
toll on my eyesight, it turns out that
I was suffering from a design trend.
Kevin Marks
Properties that affect order
๏ Flexbox (flex-direction, order,…)
๏ position
๏ float
๏ Negative margins
๏ Grid (order, grid-auto-flow, grid-row, grid-column,…)
Slide 134
Slide 134 text
.
}
a11y_10
progressive
enhancement
{
Slide 135
Slide 135 text
No content
Slide 136
Slide 136 text
No content
Slide 137
Slide 137 text
No content
Slide 138
Slide 138 text
You Don’t Have To Overwrite Everything
๏ display: inline-block
๏ display: table-cell
๏ vertical-align
๏ column-* properties
๏ float
…have no effect on grid- or flex-items