-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Conversation
This comment was marked as outdated.
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\)$/, |
There was a problem hiding this comment.
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({ |
There was a problem hiding this comment.
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.
axe-core
to 4.8.0
Fixes #15002
https://github.com/dequelabs/axe-core/releases/tag/v4.8.0
Several important changes:
duplicate-id-aria
surfaces it's failures inincomplete
instead ofviolations
, 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 targetMajor rule inclusions / deprecations are deferred to #15440
cc @jazyan