Skip to content

Commit

Permalink
chore: use standards in aria-supported script (#3104)
Browse files Browse the repository at this point in the history
* chore: use standards in aria-supported script

* fixes
  • Loading branch information
straker authored Aug 3, 2021
1 parent b494d09 commit a9e03c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/tasks/aria-supported.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,17 @@ module.exports = function(grunt) {
attributesMdTableHeader: ['aria-attribute', 'axe-core support']
};

const { ariaRoles, ariaAttrs } = axe.utils.getStandards();
const { diff: rolesTable, notes: rolesFootnotes } = getDiff(
roles,
axe.commons.aria.lookupTable.role,
ariaRoles,
listType
);

const ariaQueryAriaAttributes = getAriaQueryAttributes();
const { diff: attributesTable, notes: attributesFootnotes } = getDiff(
ariaQueryAriaAttributes,
axe.commons.aria.lookupTable.attributes,
ariaAttrs,
listType
);
const attributesTableMarkdown = mdTable([
Expand Down

0 comments on commit a9e03c8

Please sign in to comment.