Skip to content

Commit b278972

Browse files
committed
axe - report good news in output:document
1 parent 535f861 commit b278972

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/resources/formats/html/axe/axe-check.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ class QuartoAxeDocumentReporter extends QuartoAxeReporter {
9696
const violations = this.axeResult.violations;
9797
const reportElement = document.createElement("div");
9898
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+
}
99105
violations.forEach((violation) => {
100106
reportElement.appendChild(this.createViolationElement(violation));
101107
});

0 commit comments

Comments
 (0)