Skip to content

Commit

Permalink
link all a11y audits to 2.2 aXe docs (#2709)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaycebasques authored and paulirish committed Jul 20, 2017
1 parent 2f9d2cd commit 924e1f1
Show file tree
Hide file tree
Showing 35 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/accesskeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Accesskeys extends AxeAudit {
failureDescription: '`[accesskey]` values are not unique.',
helpText: 'Access keys let users quickly focus a part of the page. For proper ' +
'navigation, each access key must be unique. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/accesskeys).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/accesskeys).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/aria-allowed-attr.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ARIAAllowedAttr extends AxeAudit {
failureDescription: '`[aria-*]` attributes do not match their roles.',
helpText: 'Each ARIA `role` supports a specific subset of `aria-*` attributes. ' +
'Mismatching these invalidates the `aria-*` attributes. [Learn ' +
'more](https://developers.google.com/web/tools/lighthouse/audits/aria-allowed-attributes).',
'more](https://dequeuniversity.com/rules/axe/2.2/aria-allowed-attr).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/aria-required-attr.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ARIARequiredAttr extends AxeAudit {
description: '`[role]`s have all required `[aria-*]` attributes.',
failureDescription: '`[role]`s do not have all required `[aria-*]` attributes.',
helpText: 'Some ARIA roles have required attributes that describe the state ' +
'of the element to screen readers. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/required-aria-attributes).',
'of the element to screen readers. [Learn more](https://dequeuniversity.com/rules/axe/2.2/aria-required-attr).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AriaRequiredChildren extends AxeAudit {
'are missing.',
helpText: 'Some ARIA parent roles must contain specific child roles to perform ' +
'their intended accessibility functions. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/aria-required-children).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/aria-required-children).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AriaRequiredParent extends AxeAudit {
failureDescription: '`[role]`s are not contained by their required parent element.',
helpText: 'Some ARIA child roles must be contained by specific parent roles to ' +
'properly perform their intended accessibility functions. ' +
'[Learn more](https://dequeuniversity.com/rules/worldspace/2.1/aria-required-parent).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/aria-required-parent).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/aria-roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AriaRoles extends AxeAudit {
failureDescription: '`[role]` values are not valid.',
helpText: 'ARIA roles must have valid values in order to perform their ' +
'intended accessibility functions. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/aria-roles).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/aria-roles).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ARIAValidAttr extends AxeAudit {
failureDescription: '`[aria-*]` attributes do not have valid values.',
helpText: 'Assistive technologies, like screen readers, can\'t interpret ARIA ' +
'attributes with invalid values. [Learn ' +
'more](https://developers.google.com/web/tools/lighthouse/audits/valid-aria-values).',
'more](https://dequeuniversity.com/rules/axe/2.2/aria-valid-attr-value).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/aria-valid-attr.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ARIAValidAttr extends AxeAudit {
failureDescription: '`[aria-*]` attributes are not valid or misspelled.',
helpText: 'Assistive technologies, like screen readers, can\'t interpret ARIA ' +
'attributes with invalid names. [Learn ' +
'more](https://developers.google.com/web/tools/lighthouse/audits/valid-aria-attributes).',
'more](https://dequeuniversity.com/rules/axe/2.2/aria-valid-attr).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/audio-caption.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AudioCaption extends AxeAudit {
helpText: 'Captions make audio elements usable for deaf or hearing-impaired users, ' +
'providing critical information such as who is talking, what they\'re saying, ' +
'and other non-speech information. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/audio-caption).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/audio-caption).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/button-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ButtonName extends AxeAudit {
failureDescription: 'Buttons do not have an accessible name.',
helpText: 'When a button doesn\'t have an accessible name, screen readers announce it as ' +
'"button", making it unusable for users who rely on screen readers. ' +
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/button-name).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/button-name).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/bypass.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Bypass extends AxeAudit {
failureDescription: 'The page does not contain a heading, skip link, or landmark region.',
helpText: 'Adding ways to bypass repetitive content lets keyboard users navigate the page ' +
'more efficiently. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/bypass).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/bypass).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/color-contrast.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ColorContrast extends AxeAudit {
failureDescription: 'Background and foreground colors do not have a ' +
'sufficient contrast ratio.',
helpText: 'Low-contrast text is difficult or impossible for many users to read. ' +
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/contrast-ratio).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/color-contrast).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/definition-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class DefinitionList extends AxeAudit {
'groups, `<script>` or `<template>` elements.',
helpText: 'When definition lists are not properly marked up, screen readers may produce ' +
'confusing or inaccurate output. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/definition-list).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/definition-list).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/dlitem.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DLItem extends AxeAudit {
failureDescription: 'Definition list items are not wrapped in `<dl>` elements.',
helpText: 'Definition list items (`<dt>` and `<dd>`) must be wrapped in a ' +
'parent `<dl>` element to ensure that screen readers can properly announce them. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/dlitem).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/dlitem).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/document-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DocumentTitle extends AxeAudit {
failureDescription: 'Document does not have a `<title>` element.',
helpText: 'Screen reader users use page titles to get an overview of the contents of ' +
'the page. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/document-title).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/document-title).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/duplicate-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DuplicateId extends AxeAudit {
failureDescription: '`[id]` attributes on the page are not unique.',
helpText: 'The value of an id attribute must be unique to prevent ' +
'other instances from being overlooked by assistive technologies. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/duplicate-id).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/duplicate-id).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/frame-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class FrameTitle extends AxeAudit {
description: '`<frame>` or `<iframe>` elements have a title.',
failureDescription: '`<frame>` or `<iframe>` elements do not have a title.',
helpText: 'Screen reader users rely on frame titles to describe the contents of frames. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/frame-title).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/frame-title).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/html-has-lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class HTMLHasLang extends AxeAudit {
'that the page is in the default language that the user chose when setting up the ' +
'screen reader. If the page isn\'t actually in the default language, then the screen ' +
'reader might not announce the page\'s text correctly. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/html-lang).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/html-lang).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/html-lang-valid.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class HTMLLangValid extends AxeAudit {
'its `[lang]` attribute.',
helpText: 'Specifying a valid [BCP 47 language](https://www.w3.org/International/questions/qa-choosing-language-tags#question) ' +
'helps screen readers announce text properly. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/valid-lang).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/valid-lang).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/image-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ImageAlt extends AxeAudit {
failureDescription: 'Image elements do not have `[alt]` attributes.',
helpText: 'Informative elements should aim for short, descriptive alternate text. ' +
'Decorative elements can be ignored with an empty alt attribute.' +
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/alt-attribute).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/image-alt).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/input-image-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class InputImageAlt extends AxeAudit {
failureDescription: '`<input type="image">` elements do not have `[alt]` text.',
helpText: 'When an image is being used as an `<input>` button, providing alternative text ' +
'can help screen reader users understand the purpose of the button. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/input-image-alt).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/input-image-alt).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/label.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Label extends AxeAudit {
failureDescription: 'Form elements do not have associated labels.',
helpText: 'Labels ensure that form controls are announced properly by assistive ' +
'technologies, like screen readers. [Learn ' +
'more](https://developers.google.com/web/tools/lighthouse/audits/form-labels).',
'more](https://dequeuniversity.com/rules/axe/2.2/label).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/layout-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class LayoutTable extends AxeAudit {
helpText: 'A table being used for layout purposes should not include data elements, ' +
'such as the th or caption elements or the summary attribute, because this can ' +
'create a confusing experience for screen reader users. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/layout-table).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/layout-table).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/link-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class LinkName extends AxeAudit {
helpText: 'Link text (and alternate text for images, when used as links) that is ' +
'discernible, unique, and focusable improves the navigation experience for ' +
'screen reader users. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/link-name).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/link-name).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class List extends AxeAudit {
'supporting elements (`<script>` and `<template>`).',
helpText: 'Screen readers have a specific way of announcing lists. Ensuring proper list ' +
'structure aids screen reader output. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/list).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/list).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/listitem.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ListItem extends AxeAudit {
'or `<ol>` parent elements.',
helpText: 'Screen readers require list items (`<li>`) to be contained within a ' +
'parent `<ul>` or `<ol>` to be announced properly. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/listitem).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/listitem).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/meta-refresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class MetaRefresh extends AxeAudit {
helpText: 'Users do not expect a page to refresh automatically, and doing so will move ' +
'focus back to the top of the page. This may create a frustrating or ' +
'confusing experience. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/meta-refresh).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/meta-refresh).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/meta-viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class MetaViewport extends AxeAudit {
'element or the `[maximum-scale]` attribute is less than 5.',
helpText: 'Disabling zooming is problematic for users with low vision who rely on screen ' +
'magnification to properly see the contents of a web page. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/meta-viewport).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/meta-viewport).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/object-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ObjectAlt extends AxeAudit {
failureDescription: '`<object>` elements do not have `[alt]` text.',
helpText: 'Screen readers cannot translate non-text content. Adding alt text to `<object>` ' +
'elements helps screen readers convey meaning to users. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/object-alt).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/object-alt).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/tabindex.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class TabIndex extends AxeAudit {
failureDescription: 'Some elements have a `[tabindex]` value greater than 0.',
helpText: 'A value greater than 0 implies an explicit navigation ordering. ' +
'Although technically valid, this often creates frustrating experiences ' +
'for users who rely on assistive technologies. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/tabindex).',
'for users who rely on assistive technologies. [Learn more](https://dequeuniversity.com/rules/axe/2.2/tabindex).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/td-headers-attr.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TDHeadersAttr extends AxeAudit {
helpText: 'Screen readers have features to make navigating tables easier. Ensuring `<td>` ' +
'cells using the `[headers]` attribute only refer to other cells in the same table may ' +
'improve the experience for screen reader users. ' +
'[Learn more](https://dequeuniversity.com/rules/worldspace/2.1/td-headers-attr).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/td-headers-attr).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/th-has-data-cells.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class THHasDataCells extends AxeAudit {
helpText: 'Screen readers have features to make navigating tables easier. Ensuring table ' +
'headers always refer to some set of cells may improve the experience for screen ' +
'reader users. ' +
'[Learn more](https://dequeuniversity.com/rules/worldspace/2.1/th-has-data-cells).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/th-has-data-cells).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/valid-lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ValidLang extends AxeAudit {
failureDescription: '`[lang]` attributes do not have a valid value.',
helpText: 'Specifying a valid [BCP 47 language](https://www.w3.org/International/questions/qa-choosing-language-tags#question) ' +
'on elements helps ensure that text is pronounced correctly by a screen reader. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/valid-lang).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/valid-lang).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/video-caption.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class VideoCaption extends AxeAudit {
'with `[kind="captions"]`.',
helpText: 'When a video provides a caption it is easier for deaf and hearing impaired ' +
'users to access its information. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/video-caption).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/video-caption).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/accessibility/video-description.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class VideoDescription extends AxeAudit {
'`[kind="description"]`.',
helpText: 'Audio descriptions provide relevant information for videos that dialogue ' +
'cannot, such as facial expressions and scenes. ' +
'[Learn more](https://dequeuniversity.com/rules/axe/1.1/video-description).',
'[Learn more](https://dequeuniversity.com/rules/axe/2.2/video-description).',
requiredArtifacts: ['Accessibility']
};
}
Expand Down

0 comments on commit 924e1f1

Please sign in to comment.