Skip to content

Commit eb79b2b

Browse files
committed
fix(rule): disable aXe check requiring at least one main
aXe 2.6.0 introduces a check ensuring that a document has at least one `main` landmark, in the `landmark-one-main` rule. Ace disables this check, as it makes no real sense in EPUB. Fixes #139
1 parent f382b3c commit eb79b2b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/ace-core/src/scripts/ace-axe.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ daisy.ace.run = function(done) {
178178
description: "Ensure the element has an ARIA role matching its epub:type",
179179
},
180180
tags: ['best-practice']
181+
},
182+
{
183+
id: 'landmark-one-main',
184+
all: [
185+
"has-no-more-than-one-main"
186+
],
181187
}
182188
]
183189
});

0 commit comments

Comments
 (0)