We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 535f861 commit b278972Copy full SHA for b278972
src/resources/formats/html/axe/axe-check.js
@@ -96,6 +96,12 @@ class QuartoAxeDocumentReporter extends QuartoAxeReporter {
96
const violations = this.axeResult.violations;
97
const reportElement = document.createElement("div");
98
reportElement.className = "quarto-axe-report";
99
+ if (violations.length === 0) {
100
+ const noViolationsElement = document.createElement("div");
101
+ noViolationsElement.className = "quarto-axe-no-violations";
102
+ noViolationsElement.innerText = "No axe-core violations found.";
103
+ reportElement.appendChild(noViolationsElement);
104
+ }
105
violations.forEach((violation) => {
106
reportElement.appendChild(this.createViolationElement(violation));
107
});
0 commit comments