-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdata-good.html
More file actions
237 lines (212 loc) · 6.72 KB
/
data-good.html
File metadata and controls
237 lines (212 loc) · 6.72 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A test web site for accessibility evaluations">
<title>Product Grid | Acme Widgets</title>
<link rel="stylesheet" href="css/pure.css">
<link rel="stylesheet" href="css/goodbad.css">
<link href="https://rawgithub.com/tilomitra/csstypography/master/css/pure-typography.css" type="text/css" rel="stylesheet">
<style>
#menu {display:none;}
#layout.active #menu {display:block;}
#menu .pure-menu-selected, #menu .pure-menu-heading {color:#fff;}
.visually-hidden {
position: absolute !important;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
padding:0 !important;
border:0 !important;
height: 1px !important;
width: 1px !important;
overflow: hidden;
}
body:hover .visually-hidden a,
body:hover .visually-hidden input,
body:hover .visually-hidden button {
display: none !important;
}
/*pseudo-table*/
[role="grid"]
{
display: table;
}
[role="row"]
{
display: table-row;
}
[role="gridcell"], [role="columnheader"]
{
display: table-cell;
border: solid;
border-width: thin;
padding-left: 5px;
padding-right: 5px;
}
[role="columnheader"]{
background:#e0e0e0;
color:#000;
}
@media (min-width: 48em) {
#menu {display: block;}
}
</style>
<!--[if lte IE 8]>
<link rel="stylesheet" href="css/layouts/side-menu-old-ie.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="css/layouts/side-menu.css">
<!--<![endif]-->
</head>
<body>
<div id="layout" class="pure-type">
<!-- Menu toggle -->
<a href="#menu" id="menuLink" class="menu-link">
<!-- Hamburger icon -->
<span></span>
<i class="visually-hidden">Navigation</i>
</a>
<div id="menu" role="navigation">
<div class="pure-menu">
<a class="pure-menu-heading" href="index.html">Acme</a>
<ul class="pure-menu-list">
<li class="pure-menu-item"><a href="index.html" class="pure-menu-link">Home</a></li>
<li class="pure-menu-item"><a href="data-good.html" class="pure-menu-link pure-menu-selected">Products - Good</a></li>
<li class="pure-menu-item"><a href="data-bad.html" class="pure-menu-link">Products - Bad</a></li>
<li class="pure-menu-item"><a href="content-good.html" class="pure-menu-link">About - Good</a></li>
<li class="pure-menu-item"><a href="content-bad.html" class="pure-menu-link">About - Bad</a></li>
<li class="pure-menu-item"><a href="apply.html" class="pure-menu-link" >Apply - Good</a></li>
<li class="pure-menu-item"><a href="apply-bad.html" class="pure-menu-link">Apply - Bad</a></li>
</ul>
</div>
</div>
<main id="main">
<header class="header">
<h1>Acme Widgets</h1>
</header>
<div class="content">
<h2 class="content-subhead">Choose the right widget for you</h2>
<p>
Acme widgets is more than just anvils. Choose the right tool for your job.
</p>
<p>This page includes <strong>fully accessible data tables</strong>. Your automated tests should not trigger any errors.</p>
<h3>Compare Acme Widgets</h3>
<table summary="product comparisons" class="pure-table pure-table-bordered">
<caption>Acme Widgets For The Win</caption>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Description</th>
<th scope="col">Purpose</th>
<th scope="col">Cost</th>
</tr>
</thead>
<tbody>
<tr>
<td>Anvil</td>
<td>Very heavy block of iron</td>
<td>Smashing the RoadRunner</td>
<td>$29.95</td>
</tr>
<tr>
<td>Rocket <a href="https://www.nasa.gov/humans-in-space/spaceships-and-rockets/"><img src="spacerocket_q.gif" alt="NASA rockets" style="width:25px; height:25px;"></a></td>
<td>Jet power</td>
<td>Go as fast as the bird</td>
<td>$19.99</td>
</tr>
<tr>
<td>Tornado Generator</td>
<td>Create a local tornado</td>
<td>Create chaos</td>
<td>$4,590</td>
</tr>
<tr>
<td>Pseudo Tunnel</td>
<td>Make a rock look like a tunnel</td>
<td>Watch the bird run into a rock</td>
<td>$4.25</td>
</tr>
</tbody>
</table>
<h3>Last order</h3>
<table summary="invoice" class="pure-table pure-table-bordered">
<caption>Order from October 25, 2015</caption>
<thead>
<tr>
<th scope="col" id="name">Name</th>
<th scope="col" id="quantity">Quantity</th>
<th scope="col" id="cost">Cost</th>
<th scope="col" id="subtotal">Subtotal</th>
</tr>
</thead>
<tfoot>
<tr>
<th scope="row" colspan="3" id="total">Total:</th>
<td headers="total">$86.93</td>
</tr>
</tfoot>
<tbody>
<tr>
<td headers="name">Anvil</td>
<td headers="quantity">1</td>
<td headers="cost">$29.95</td>
<td headers="subtotal">$29.95</td>
</tr>
<tr>
<td headers="name">Pseudo Tunnel</td>
<td headers="quantity">4</td>
<td headers="cost">$4.25</td>
<td headers="subtotal">$17.00</td>
</tr>
<tr>
<td headers="name">Rocket</td>
<td headers="quantity">2</td>
<td headers="cost">$19.99</td>
<td headers="subtotal">$39.98</td>
</tr>
</tbody>
</table>
<h3>Pseudo table using ARIA</h3>
<p>We don't want to use ARIA to replace a good data table with divitis. But this is an example of a basic pseudo table that retains the data table semantics. </p>
<div role="grid" class="pure-table">
<div role="row">
<div role="columnheader">
Name
</div>
<div role="columnheader">
Description
</div>
<div role="columnheader">
Cost
</div>
</div>
<div role="row">
<div role="gridcell">
Anvil
</div>
<div role="gridcell">
Very heavy block of iron
</div>
<div role="gridcell">
$29.95
</div>
</div>
<div role="row">
<div role="gridcell">
Rocket
</div>
<div role="gridcell">
Jet power
</div>
<div role="gridcell">
$19.99
</div>
</div>
</div>
</div>
</main>
</div>
<script src="js/ui.js"></script>
</body>
</html>