Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use standards in aria-supported script #3104

Merged
merged 2 commits into from
Aug 3, 2021

Conversation

straker
Copy link
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
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()

@@ -39,14 +39,14 @@ module.exports = function(grunt) {

const { diff: rolesTable, notes: rolesFootnotes } = getDiff(
roles,
axe.commons.aria.lookupTable.role,
axe.utils.getStandards().ariaRoles,
Copy link
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