-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathaccessibility.theory.txt
47 lines (38 loc) · 2.89 KB
/
accessibility.theory.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ACCESSIBILITY_GENERAL ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
┌─────────────┐
│ GENERAL │
└─────────────┘
PROGRESSIVE ENHANCEMENT ==> #Difference between:
# - graceful degradation:
# - design for high-end browsers
# - lazily provide alternatives for low-end browsers (usually "please upgrade")
# - best for user experience of most and ease of maintenance
# - progressive enhancement:
# - design for low-end browsers
# - lazily provide enhanced experience for high-end browsers
# - best for user experience of all and accessibility
┌──────────┐
│ HTML │
└──────────┘
<any>
title="STR" #Tooltip
<any>
role="STR" #Semantic purpose (ARIA)
<focusable>
accesskey="CHAR" #Give focus. Shortcut depends on browser :
# - Safari/Chrome : Alt (Ctrl-Opt on Mac)
# - IE : Alt
# - Firefox : Shift-Alt (Ctrl-Opt on Mac)
# - Opera : Shift-Esc
tabindex="NUM" #Tab order:
# - -NUM: cannot be tabbed
# - 0: auto
# - NUM
#Should prefer browser default.
<img> #Not to be used for:
# - text content
# - what can be achieved with CSS (gradients, shadows)
<video> #Better than animated GIF|PNG: show playblack controls (and smaller file size)
<track> #Should be used