Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Bump axe-core version to 3.2.2 #20

Merged
merged 1 commit into from
Mar 19, 2019
Merged

Conversation

michaelyoungstrom
Copy link
Contributor

@michaelyoungstrom michaelyoungstrom commented Feb 26, 2019

  • Jump from axe-core 1.1.0 to 3.2.2
  • axe.a11yAudit has been removed in favor of axe.run
  • For the nav-aria-label-value and nav-aria-label-present, I was seeing failures saying: TypeError: axe._tree is undefined in /home/travis/build/edx/edx-custom-a11y-rules/node_modules/axe-core/axe.min.js. I followed what the axe-core repo does for this, and defined the axe._tree inside the test: Link to example in the axe-core repo
  • The old axe.commons.dom.isFocusable did an early check to see if an element was null: 1.1.0 code link, but not anymore: 3.2.2 code link. So I added a null check to fix some failures I was seeing.
  • The skip-link rule no longer requires a focusable element, so our current skip-link-fail.html was actually passing: Link to PR that changed this check. So I changed the html file to represent a valid failure.

@michaelyoungstrom michaelyoungstrom changed the title Bump axe-core version Bump axe-core version to 3.2.2 Mar 14, 2019
@michaelyoungstrom michaelyoungstrom force-pushed the youngstrom/bump-axe-core branch 4 times, most recently from 66895d1 to 1cbb48e Compare March 19, 2019 15:30
@@ -116,7 +116,8 @@ var customRules = {
'fail': 'all <nav> elements MUST have aria-label or aria-labelledby attribute'
}
},
evaluate: function(node, options) {
evaluate: function(node, option) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Did this need to be changed? It looks like all the other checks still use "options".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

woops. good catch! That was accidental.

@michaelyoungstrom michaelyoungstrom merged commit 6e53b5e into master Mar 19, 2019
@michaelyoungstrom michaelyoungstrom deleted the youngstrom/bump-axe-core branch March 19, 2019 20:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants