Skip to content

Commit 796c71b

Browse files
author
Cameron Cundiff
committed
Disable color contrast and remove version
- Color contrast checking makes the page scroll, which is not ideal in dev and staging.
1 parent ebbf1b5 commit 796c71b

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ gulp.task("publish", function() {
6666
},
6767
});
6868

69-
return gulp.src('./dist/accesslint-0.1.js')
69+
return gulp.src('./dist/accesslint.js')
7070
.pipe(publisher.publish())
7171
.pipe(publisher.cache())
7272
.pipe(awspublish.reporter());

src/auditor.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ import { axe } from "axe-core/axe.min.js";
22
import report from "./reporter";
33

44
export default function () {
5-
window.axe.a11yCheck(document, (results) => {
5+
const options = {
6+
"rules": {
7+
"color-contrast": { enabled: false },
8+
}
9+
};
10+
11+
window.axe.a11yCheck(document, options, (results) => {
612
report(results);
713
});
814
}

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
],
77
output: {
88
path: path.join(__dirname, "dist"),
9-
filename: "accesslint-0.1.js"
9+
filename: "accesslint.js"
1010
},
1111
plugins: [],
1212
module: {

0 commit comments

Comments
 (0)