[go: nahoru, domu]

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

deps: upgrade axe-core to 4.8.0 #15430

Merged
merged 10 commits into from
Sep 6, 2023
Merged

deps: upgrade axe-core to 4.8.0 #15430

merged 10 commits into from
Sep 6, 2023

Conversation

adamraine
Copy link
Member
@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.

{
node: {
'type': 'node',
'selector': 'body > section > span#target-size-2',
'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
Member 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

@@ -66,16 +66,6 @@ describe('ReportRendererAxe', () => {
// id: 'color-contrast',
// },

expect(axeResults.violations.find(v => v.id === 'duplicate-id')).toMatchObject({
Copy link
Member 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
@adamraine adamraine merged commit 3361b9c into main Sep 6, 2023
29 checks passed
@adamraine adamraine deleted the axe-core-canary branch September 6, 2023 21:28
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