-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathaccessibility.less
82 lines (75 loc) · 2.09 KB
/
accessibility.less
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// To allow children elements to be positioned absolutely
// --------------------------------------------------
.component { position: relative; }
.block { position: relative; }
// jquery.a11y start
// Invisible aria-labels
// --------------------------------------------------
.aria-label {
position: absolute !important;
&.relative {
position: relative !important;
}
left: 0 !important;
width: auto !important;
height: auto !important;
overflow: auto !important;
color: rgba(0,0,0,0) !important;
background: rgba(0,0,0,0) !important;
font-size: 1px !important;
padding: 0 !important;
margin: 0 !important;
line-height: normal !important;
z-index: 1;
}
// Force aria-labels to hide on hidden
// --------------------------------------------------
.aria-label.aria-hidden {
display: none !important;
}
// Hidden focus guard
// --------------------------------------------------
.a11y-focusguard {
left: 0 !important;
bottom: 0 !important;
width: auto !important;
height: auto !important;
overflow: auto !important;
color: rgba(0,0,0,0) !important;
background: rgba(0,0,0,0) !important;
font-size: 1px !important;
padding: 0 !important;
margin: 0 !important;
line-height: normal !important;
z-index: 1;
// iPad: Stop accessibility cursor focusing until end of page;
// --------------------------------------------------
.touchevents & {
position: absolute !important;
}
// Desktop: stop focus making window jump to bottom of page;
// --------------------------------------------------
.no-touchevents & {
position: fixed !important;
}
}
// Focus distraction
// --------------------------------------------------
#a11y-focuser {
bottom: 0 !important;
position: fixed !important;
left: 0 !important;
width: auto !important;
height: auto !important;
overflow: auto !important;
color: rgba(0,0,0,0) !important;
background: rgba(0,0,0,0) !important;
font-size: 1px !important;
padding: 0 !important;
margin: 0 !important;
line-height: normal !important;
z-index: 1;
}
.a11y-disable-focusoutline *:focus {
outline: none !important;
}