testilo 33.6.0 → 33.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -76,7 +76,8 @@ const populateQuery = (report, query) => {
|
|
|
76
76
|
// Add paragraph groups about the issue details to the query.
|
|
77
77
|
const issueDetailRows = [];
|
|
78
78
|
issueIDs.forEach(issueID => {
|
|
79
|
-
|
|
79
|
+
const issueSummary = issues[issueID].summary;
|
|
80
|
+
issueDetailRows.push(`<h3 class="bars">Issue: ${issueSummary}</h3>`);
|
|
80
81
|
issueDetailRows.push(`<p>Impact: ${issues[issueID].why || 'N/A'}</p>`);
|
|
81
82
|
issueDetailRows.push(`<p>WCAG: ${issues[issueID].wcag || 'N/A'}</p>`);
|
|
82
83
|
const issueData = details.issue[issueID];
|
|
@@ -90,8 +91,10 @@ const populateQuery = (report, query) => {
|
|
|
90
91
|
issueDetailRows.push(`<h5>Rule <code>${ruleID}</code></h5>`);
|
|
91
92
|
issueDetailRows.push(`<p>Description: ${ruleData.what}</p>`);
|
|
92
93
|
issueDetailRows.push(`<p>Count of instances: ${ruleData.complaints.countTotal}</p>`);
|
|
94
|
+
const href = `${query.reportURL}?tool=${toolID}&rule=${ruleID}`;
|
|
95
|
+
const detailLabel = `Issue ${issueSummary} tool ${toolID} rule ${ruleID} instance details`;
|
|
93
96
|
issueDetailRows.push(
|
|
94
|
-
`<p><a href="${
|
|
97
|
+
`<p><a href="${href}" aria-label="${detailLabel}">Instance details</a></p>`
|
|
95
98
|
);
|
|
96
99
|
});
|
|
97
100
|
});
|