Made changes to fix accessibility errors

Still some warnings and notices, but they are inconsequential.
This commit is contained in:
Matt C 2017-04-07 17:00:32 +01:00
parent 03ad87d651
commit 44d2e100bd
2 changed files with 57 additions and 52 deletions

View file

@ -26,7 +26,7 @@ module.exports = function (grunt) {
grunt.registerTask("prod",
"Creates a production-ready build. Use the --msg flag to add a compile message.",
["eslint", "clean:prod", "webpack:webProd", "inline", "chmod"]);
["eslint", "clean:prod", "webpack:webProd", "accessibility:test", "inline", "chmod"]);
grunt.registerTask("default",
"Lints the code base",
@ -136,7 +136,11 @@ module.exports = function (grunt) {
},
accessibility: {
options: {
accessibilityLevel: "WCAG2A"
accessibilityLevel: "WCAG2A",
verbose: false,
ignore: [
"WCAG2A.Principle1.Guideline1_3.1_3_1.H42.2"
]
},
test: {
src: ["build/**/*.html"]