Skip to content

Commit 809d48a

Browse files
author
Blake Bertuccelli-Booth
authored
Merge pull request #143 from bbertucc/mvp-5.1
Mvp 5.1
2 parents f8ed9eb + ab84485 commit 809d48a

5 files changed

Lines changed: 129 additions & 126 deletions

File tree

integrations/axe/axe_tags.json

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,282 +1,282 @@
11
[
22
{
3-
"slug": "wcag2a",
3+
"slug": "axe_wcag2a",
44
"title": "WCAG 2.0 Level A",
55
"description": "",
66
"category": "WCAG Axe Tags"
77
},
88
{
9-
"slug": "wcag2aa",
9+
"slug": "axe_wcag2aa",
1010
"title": "WCAG 2.0 Level AA",
1111
"category": "WCAG Axe Tags",
1212
"description": ""
1313
},
1414
{
15-
"slug": "wcag2aaa",
15+
"slug": "axe_wcag2aaa",
1616
"title": "WCAG 2.0 Level AAA",
1717
"category": "WCAG Axe Tags",
1818
"description": ""
1919
},
2020
{
21-
"slug": "wcag21a",
21+
"slug": "axe_wcag21a",
2222
"title": "WCAG 2.1 Level A",
2323
"category": "WCAG Axe Tags",
2424
"description": ""
2525
},
2626
{
27-
"slug": "wcag21aa",
27+
"slug": "axe_wcag21aa",
2828
"title": "WCAG 2.1 Level AA",
2929
"category": "WCAG Axe Tags",
3030
"description": ""
3131
},
3232
{
33-
"slug": "wcag21aaa",
33+
"slug": "axe_wcag21aaa",
3434
"title": "WCAG 2.1 Level AAA",
3535
"category": "WCAG Axe Tags",
3636
"description": ""
3737
},
3838
{
39-
"slug": "wcag111",
39+
"slug": "axe_wcag111",
4040
"title": "WCAG Success Criteria 1.1.1",
4141
"category": "WCAG Axe Tags",
4242
"description": ""
4343
},
4444
{
45-
"slug": "wcag121",
45+
"slug": "axe_wcag121",
4646
"title": "WCAG Success Criteria 1.2.1",
4747
"category": "WCAG Axe Tags",
4848
"description": ""
4949
},
5050
{
51-
"slug": "wcag122",
51+
"slug": "axe_wcag122",
5252
"title": "WCAG Success Criteria 1.2.2",
5353
"category": "WCAG Axe Tags",
5454
"description": ""
5555
},
5656
{
57-
"slug": "wcag131",
57+
"slug": "axe_wcag131",
5858
"title": "WCAG Success Criteria 1.3.1",
5959
"category": "WCAG Axe Tags",
6060
"description": ""
6161
},
6262
{
63-
"slug": "wcag141",
63+
"slug": "axe_wcag141",
6464
"title": "WCAG Success Criteria 1.4.1",
6565
"category": "WCAG Axe Tags",
6666
"description": ""
6767
},
6868
{
69-
"slug": "wcag143",
69+
"slug": "axe_wcag143",
7070
"title": "WCAG Success Criteria 1.4.3",
7171
"category": "WCAG Axe Tags",
7272
"description": ""
7373
},
7474
{
75-
"slug": "wcag144",
75+
"slug": "axe_wcag144",
7676
"title": "WCAG Success Criteria 1.4.4",
7777
"category": "WCAG Axe Tags",
7878
"description": ""
7979
},
8080
{
81-
"slug": "wcag211",
81+
"slug": "axe_wcag211",
8282
"title": "WCAG Success Criteria 2.1.1",
8383
"category": "WCAG Axe Tags",
8484
"description": ""
8585
},
8686
{
87-
"slug": "wcag221",
87+
"slug": "axe_wcag221",
8888
"title": "WCAG Success Criteria 2.2.1",
8989
"category": "WCAG Axe Tags",
9090
"description": ""
9191
},
9292
{
93-
"slug": "wcag222",
93+
"slug": "axe_wcag222",
9494
"title": "WCAG Success Criteria 2.2.2",
9595
"category": "WCAG Axe Tags",
9696
"description": ""
9797
},
9898
{
99-
"slug": "wcag241",
99+
"slug": "axe_wcag241",
100100
"title": "WCAG Success Criteria 2.4.1",
101101
"category": "WCAG Axe Tags",
102102
"description": ""
103103
},
104104
{
105-
"slug": "wcag242",
105+
"slug": "axe_wcag242",
106106
"title": "WCAG Success Criteria 2.4.2",
107107
"category": "WCAG Axe Tags",
108108
"description": ""
109109
},
110110
{
111-
"slug": "wcag244",
111+
"slug": "axe_wcag244",
112112
"title": "WCAG Success Criteria 2.4.4",
113113
"category": "WCAG Axe Tags",
114114
"description": ""
115115
},
116116
{
117-
"slug": "wcag311",
117+
"slug": "axe_wcag311",
118118
"title": "WCAG Success Criteria 3.1.1",
119119
"category": "WCAG Axe Tags",
120120
"description": ""
121121
},
122122
{
123-
"slug": "wcag312",
123+
"slug": "axe_wcag312",
124124
"title": "WCAG Success Criteria 3.1.2",
125125
"category": "WCAG Axe Tags",
126126
"description": ""
127127
},
128128
{
129-
"slug": "wcag332",
129+
"slug": "axe_wcag332",
130130
"title": "WCAG Success Criteria 3.3.2",
131131
"category": "WCAG Axe Tags",
132132
"description": ""
133133
},
134134
{
135-
"slug": "wcag411",
135+
"slug": "axe_wcag411",
136136
"title": "WCAG Success Criteria 4.1.1",
137137
"category": "WCAG Axe Tags",
138138
"description": ""
139139
},
140140
{
141-
"slug": "wcag412",
141+
"slug": "axe_wcag412",
142142
"title": "WCAG Success Criteria 4.1.2",
143143
"category": "WCAG Axe Tags",
144144
"description": ""
145145
},
146146
{
147-
"slug": "section508",
147+
"slug": "axe_section508",
148148
"title": "Section 508",
149149
"category": "Other Axe Tags",
150150
"description": "Section 508 is part of a 1998 amendment to the Rehabilitation Act of 1973. It requires all Federal electronic content to be accessible"
151151
},
152152
{
153-
"slug": "section50822a",
153+
"slug": "axe_section50822a",
154154
"title": "Section 508.22.a",
155155
"category": "Other Axe Tags",
156156
"description": ""
157157
},
158158
{
159-
"slug": "section50822f",
159+
"slug": "axe_section50822f",
160160
"title": "Section 508.22.f",
161161
"category": "Other Axe Tags",
162162
"description": ""
163163
},
164164
{
165-
"slug": "section50822g",
165+
"slug": "axe_section50822g",
166166
"title": "Section 508.22.g",
167167
"category": "Other Axe Tags",
168168
"description": ""
169169
},
170170
{
171-
"slug": "section50822i",
171+
"slug": "axe_section50822i",
172172
"title": "Section 508.22.i",
173173
"category": "Other Axe Tags",
174174
"description": ""
175175
},
176176
{
177-
"slug": "section50822j",
177+
"slug": "axe_section50822j",
178178
"title": "Section 508.22.j",
179179
"category": "Other Axe Tags",
180180
"description": ""
181181
},
182182
{
183-
"slug": "section50822n",
183+
"slug": "axe_section50822n",
184184
"title": "Section 508.22.n",
185185
"category": "Other Axe Tags",
186186
"description": ""
187187
},
188188
{
189-
"slug": "section50822o",
189+
"slug": "axe_section50822o",
190190
"title": "Section 508.22.o",
191191
"category": "Other Axe Tags",
192192
"description": ""
193193
},
194194
{
195-
"slug": "ACT",
195+
"slug": "axe_ACT",
196196
"title": "ACT",
197197
"category": "Other Axe Tags",
198198
"description": "ACT Rules are designed to harmonize how edge cases for WCAG and other accessibility guidance are tested."
199199
},
200200
{
201-
"slug": "best-practice",
201+
"slug": "axe_best-practice",
202202
"title": "Best Practices",
203203
"category": "Other Axe Tags",
204204
"description": "Common accessibility best practices."
205205
},
206206
{
207-
"slug": "cat.aria",
207+
"slug": "axe_cat.aria",
208208
"title": "Aria",
209209
"category": "Axe Categories",
210210
"description": ""
211211
},
212212
{
213-
"slug": "cat.color",
213+
"slug": "axe_cat.color",
214214
"title": "Color",
215215
"category": "Axe Categories",
216216
"description": ""
217217
},
218218
{
219-
"slug": "cat.forms",
219+
"slug": "axe_cat.forms",
220220
"title": "Forms",
221221
"category": "Axe Categories",
222222
"description": "axe/forms contains accessibility rules from the axe forms category."
223223
},
224224
{
225-
"slug": "cat.keyboard",
225+
"slug": "axe_cat.keyboard",
226226
"title": "Keyboard",
227227
"category": "Axe Categories",
228228
"description": "axe/keyboard contains accessibility rules from the axe keyboard category."
229229
},
230230
{
231-
"slug": "cat.language",
231+
"slug": "axe_cat.language",
232232
"title": "Language",
233233
"category": "Axe Categories",
234234
"description": "axe/language contains accessibility rules from the axe language category."
235235
},
236236
{
237-
"slug": "cat.name-role-value",
237+
"slug": "axe_cat.name-role-value",
238238
"title": "Name Role Value",
239239
"category": "Axe Categories",
240240
"description": "axe/name-role-value contains accessibility rules from the axe name-role-value category."
241241
},
242242
{
243-
"slug": "cat.parsing",
243+
"slug": "axe_cat.parsing",
244244
"title": "Parsing",
245245
"category": "Axe Categories",
246246
"description": "axe/parsing contains accessibility rules from the axe parsing category."
247247
},
248248
{
249-
"slug": "cat.semantics",
249+
"slug": "axe_cat.semantics",
250250
"title": "Semantics",
251251
"category": "Axe Categories",
252252
"description": "axe/semantics contains accessibility rules from the axe semantics category."
253253
},
254254
{
255-
"slug": "cat.sensory-and-visual-cues",
255+
"slug": "axe_cat.sensory-and-visual-cues",
256256
"title": "Sensory and Visual Cues",
257257
"category": "Axe Categories",
258258
"description": "axe/sensory-and-visual-cues contains accessibility rules from the axe sensory-and-visual-cues category."
259259
},
260260
{
261-
"slug": "cat.structure",
261+
"slug": "axe_cat.structure",
262262
"title": "Structure",
263263
"category": "Axe Categories",
264264
"description": "axe/structure contains accessibility rules from the axe structure category."
265265
},
266266
{
267-
"slug": "cat.tables",
267+
"slug": "axe_cat.tables",
268268
"title": "Tables",
269269
"category": "Axe Categories",
270270
"description": "axe/tables contains accessibility rules from the axe tables category."
271271
},
272272
{
273-
"slug": "cat.text-alternatives",
273+
"slug": "axe_cat.text-alternatives",
274274
"title": "Text Alternatives",
275275
"category": "Axe Categories",
276276
"description": "axe/text-alternatives contains accessibility rules from the axe text-alternatives category."
277277
},
278278
{
279-
"slug": "cat.time-and-media",
279+
"slug": "axe_cat.time-and-media",
280280
"title": "Time and Media",
281281
"category": "Axe Categories",
282282
"description": "axe/time-and-media contains accessibility rules from the axe time-and-media category."

integrations/axe/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function axe_alerts($response_body, $page_url){
167167
$tags = $violation->tags;
168168
$copy = $tags;
169169
foreach($tags as $tag){
170-
$alert['tags'].= str_replace('.', '', $tag);
170+
$alert['tags'].= str_replace('.', '', 'axe_'.$tag);
171171
if (next($copy ))
172172
$alert['tags'].= ',';
173173
}

integrations/wave/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function wave_alerts($response_body, $page_url){
178178
$alert['url'] = $page_url;
179179

180180
// Setup tags.
181-
$alert['tags'] = $wave_item['id'];
181+
$alert['tags'] = 'wave_'.$wave_item['id'];
182182

183183
// Setup message.
184184
if($wave_item['count'] > 1){

0 commit comments

Comments
 (0)