Skip to content

Commit 4d479bf

Browse files
committed
fix: Do not assign the role "heading" to buttons
1 parent 8ac5073 commit 4d479bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function formatFile (file) {
4646

4747
const content =
4848
' <div class="row page">\n' +
49-
' <button type="button" role="heading" aria-level="2"><span class="heading2">' + file.name + '</span></button>' +
49+
' <button type="button"><span class="heading2" role="heading" aria-level="2">' + file.name + '</span></button>' +
5050
' <span class="buttons">' + buttonMarkup + '</span>\n' +
5151
' </div>\n' +
5252
' <div class="row report">' + returnedErrors + returnedWarnings + returnedNotices + '</div>\n'
@@ -107,7 +107,7 @@ module.exports = function (results) {
107107
const firstOccurrence = 'Warn about the first occurrence only'
108108
const heading =
109109
' <div class="row summary">\n' +
110-
' <button type="button" role="heading" aria-level="1"><span class="heading1">HTML Validity Report</span></button>' +
110+
' <button type="button"><span class="heading1" role="heading" aria-level="1">HTML Validity Report</span></button>' +
111111
' <span class="buttons">' + buttonMarkup + '</span>\n' +
112112
' </div>\n' +
113113
' <div class="row filters form-group">\n' +

0 commit comments

Comments
 (0)