Skip to content

chore: use standards in aria-supported script#3104

Merged
straker merged 2 commits intodevelopfrom
aria-supported-standards
Aug 3, 2021
Merged

chore: use standards in aria-supported script#3104
straker merged 2 commits intodevelopfrom
aria-supported-standards

Conversation

@straker
Copy link
Copy Markdown
Contributor

@straker straker commented Jul 28, 2021

Currently nothing is unsupported in our standards object though, but I tested it with aria-busy and it worked.

Closes issue: #3081

@straker straker requested a review from a team as a code owner July 28, 2021 21:57
Copy link
Copy Markdown
Member

@stephenmathieson stephenmathieson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to invoke this function twice? Why not do:

const {ariaRoles, ariaAttrs} = axe.utils.getStandards()

const { diff: rolesTable, notes: rolesFootnotes } = getDiff(
roles,
axe.commons.aria.lookupTable.role,
axe.utils.getStandards().ariaRoles,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with Stephen it's better to invoke getStandards() only once.

@straker straker merged commit a9e03c8 into develop Aug 3, 2021
@straker straker deleted the aria-supported-standards branch August 3, 2021 21:24
straker added a commit that referenced this pull request Aug 24, 2021
* chore: use standards in aria-supported script

* fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants