-
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
core(audits): remove audio-caption accessibility audit #10453
core(audits): remove audio-caption accessibility audit #10453
Conversation
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.
Thanks @beaufortfrancois! Right in time for 6.0 breaking change too :)
For tests to pass you'll also need to update
assert.equal(collisions, 17, `The number of duplicate strings have changed, update this assertion if that is expected, or reword strings. Collisions: ${collisionStrings}`); |
and our smoke test assertions
https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-cli/test/smokehouse/test-definitions/a11y/expectations.js
@@ -459,7 +458,6 @@ const defaultConfig = { | |||
{id: 'aria-toggle-field-name', weight: 3, group: 'a11y-aria'}, | |||
{id: 'aria-valid-attr-value', weight: 10, group: 'a11y-aria'}, | |||
{id: 'aria-valid-attr', weight: 10, group: 'a11y-aria'}, | |||
{id: 'audio-caption', weight: 10, group: 'a11y-audio-video'}, |
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 think we're still running this audit because of its wcag2a
tag though, so I think we'll want to explicitly say enabled: false
in our accessibility gatherer.
lighthouse/lighthouse-core/gather/gatherers/accessibility.js
Lines 34 to 51 in 40a187f
rules: { | |
'tabindex': {enabled: true}, | |
'accesskeys': {enabled: true}, | |
'heading-order': {enabled: true}, | |
'meta-viewport': {enabled: true}, | |
'duplicate-id': {enabled: false}, | |
'table-fake-caption': {enabled: false}, | |
'td-has-header': {enabled: false}, | |
'marquee': {enabled: false}, | |
'area-alt': {enabled: false}, | |
'aria-dpub-role-fallback': {enabled: false}, | |
'html-xml-lang-mismatch': {enabled: false}, | |
'blink': {enabled: false}, | |
'server-side-image-map': {enabled: false}, | |
'identical-links-same-purpose': {enabled: false}, | |
'no-autoplay-audio': {enabled: false}, | |
'svg-img-alt': {enabled: false}, | |
}, |
cc @robdodson I'm assuming you're already looped in here, but any thoughts on audits/axe-rules we should be adding to be the spiritual successor here? |
Shouldn't we keep it, but just add a deprecated banner? |
thanks @beaufortfrancois ! in addition to @connorjclark 's web.dev comment (👍) , a heads up that there are still some failing smoketests that will need assertion updates in https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-cli/test/smokehouse/test-definitions/a11y/expectations.js |
I don't think they've created a replacement for this specific audit. They do have some newer audits that seem cool like |
Friendly ping here @beaufortfrancois to see if you think you'll have time to get to this. We'd love to get it in before 6.0 final since it's a breaking change :) |
btw the recommendation on the web.dev side was to add a banner to the article stating that the audit is deprecated. Similar to what we did with heading-level. That's the easiest solution that doesn't cause us to 404 or redirect an existing url. |
I've added the banner to the web.dev audit article. |
This PR removed some nodes in |
ce00c8e
to
fece98e
Compare
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.
thanks for wading through all 30 things that need to be updated just to remove a single audit @beaufortfrancois!
@patrickhulce not trying to steal your review :) |
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.
LGTM too, thanks for sticking with this @beaufortfrancois!
:) |
This PR removes the audio caption accessibility audit from Lighthouse as it has been disabled/deprecated since 2018. See dequelabs/axe-core#1071
Note that a web.dev PR is in progress to remove https://web.dev/audio-caption as well.