Skip to content

deps: upgrade axe-core to 4.8.0#15430

Merged
adamraine merged 10 commits intomainfrom
axe-core-canary
Sep 6, 2023
Merged

deps: upgrade axe-core to 4.8.0#15430
adamraine merged 10 commits intomainfrom
axe-core-canary

Conversation

@adamraine
Copy link
Copy Markdown
Contributor

@adamraine adamraine commented Aug 31, 2023

Fixes #15002

https://github.com/dequelabs/axe-core/releases/tag/v4.8.0

Several important changes:

  • duplicate-id-aria surfaces it's failures in incomplete instead of violations, so we need to make this audit informative.
  • duplicate-id has been deprecated and disabled by default. We don't have a Lighthouse audit for this but we did use it to check against our own report.
  • target-size changed it's failure criteria so our smoke test captures an additional target

Major rule inclusions / deprecations are deferred to #15440

cc @jazyan

@adamraine adamraine requested a review from a team as a code owner August 31, 2023 19:58
@adamraine adamraine requested review from connorjclark and removed request for a team August 31, 2023 19:58
@adamraine

This comment was marked as outdated.

'snippet': '<span role="button" tabindex="0" id="target-size-2">',
// Exact target size can vary depending on the device.
'explanation': /^Fix any of the following:\n {2}Target has insufficient size \([0-9.]+px by [0-9.]+px, should be at least 24px by 24px\)\n {2}Target has insufficient offset from its closest neighbor \([0-9.]+px should be at least 24px\)$/,
'explanation': /^Fix any of the following:\n {2}Target has insufficient size \([0-9.]+px by [0-9.]+px, should be at least 24px by 24px\)\n {2}Target has insufficient space to its closest neighbors. Safe clickable space has a diameter of \{\$data\.closestOffset\}px instead of at least 24px\)$/,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm pretty sure there are typos here: dequelabs/axe-core#4148

// id: 'color-contrast',
// },

expect(axeResults.violations.find(v => v.id === 'duplicate-id')).toMatchObject({
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

duplicate-id check has been deprecated, and will likely be removed in a future axe release: dequelabs/axe-core#3892

I don't think we need to enable it to keep this check since we aren't going to "fix" this ever.

@adamraine adamraine changed the title deps: upgrade axe-core to latest canary deps: upgrade axe-core to 4.8.0 Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accessibility error: Failed to execute 'getImageData' on 'CanvasRenderingContext2D'

3 participants