Skip to content

Commit

Permalink
fix: Do not assign the role "heading" to buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
prantlf committed Mar 4, 2018
1 parent 8ac5073 commit 4d479bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function formatFile (file) {

const content =
' <div class="row page">\n' +
' <button type="button" role="heading" aria-level="2"><span class="heading2">' + file.name + '</span></button>' +
' <button type="button"><span class="heading2" role="heading" aria-level="2">' + file.name + '</span></button>' +
' <span class="buttons">' + buttonMarkup + '</span>\n' +
' </div>\n' +
' <div class="row report">' + returnedErrors + returnedWarnings + returnedNotices + '</div>\n'
Expand Down Expand Up @@ -107,7 +107,7 @@ module.exports = function (results) {
const firstOccurrence = 'Warn about the first occurrence only'
const heading =
' <div class="row summary">\n' +
' <button type="button" role="heading" aria-level="1"><span class="heading1">HTML Validity Report</span></button>' +
' <button type="button"><span class="heading1" role="heading" aria-level="1">HTML Validity Report</span></button>' +
' <span class="buttons">' + buttonMarkup + '</span>\n' +
' </div>\n' +
' <div class="row filters form-group">\n' +
Expand Down

0 comments on commit 4d479bf

Please sign in to comment.