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

add help text (and links) to a11y audits #1589

Merged
merged 2 commits into from
Feb 1, 2017
Merged

add help text (and links) to a11y audits #1589

merged 2 commits into from
Feb 1, 2017

Conversation

kaycebasques
Copy link
Contributor

WDYT @robdodson PTAL LGTY?

@robdodson
Copy link
Contributor

Seems OK to me. I'm aware from the computer for a bit but I'll check it in my smoke test when I get back. Thanks for doing this!

@robdodson
Copy link
Contributor

Just started reviewing :)

:octocat: Sent from GH.

@@ -33,6 +33,9 @@ class ImageAlt extends AxeAudit {
category: 'Accessibility',
name: 'image-alt',
description: 'Every image element has an alt attribute',
helpText: 'Screen readers can\'t read images to their users. The `alt` ' +
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest changing to something like "Screen reader users rely on alt text to provide descriptions for images. It's also used as fallback content if the image fails to load"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -34,6 +34,9 @@ class ColorContrast extends AxeAudit {
category: 'Accessibility',
name: 'color-contrast',
description: 'Background and foreground colors have a sufficient contrast ratio',
helpText: 'Some users with low vision have a difficult time sensing contrast. ' +
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest rewording to "Low contrast text is difficult or impossible for many users to read."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -33,6 +33,8 @@ class ARIAAllowedAttr extends AxeAudit {
category: 'Accessibility',
name: 'aria-allowed-attr',
description: 'Element aria-* attributes are allowed for this role',
helpText: 'Invalid role-attribute combinations can disable the accessibility ' +
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest rewording to something like "Each ARIA role defines a specific subset of aria-* attributes that it supports. Mismatching these will invalidate the aria-* attributes."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -33,6 +33,8 @@ class ARIARequiredAttr extends AxeAudit {
category: 'Accessibility',
name: 'aria-required-attr',
description: 'Elements with ARIA roles have the required aria-* attributes',
helpText: 'Some ARIA roles have required attributes that describe the state ' +
'of the role to screen readers. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/required-aria-attributes).',
Copy link
Contributor

Choose a reason for hiding this comment

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

Might change this to "state of the element".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -33,6 +33,8 @@ class ARIAValidAttr extends AxeAudit {
category: 'Accessibility',
name: 'aria-valid-attr-value',
description: 'Element aria-* attributes have valid values',
helpText: 'Screen readers may not be able to read elements with invalid ARIA ' +
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest rewording to something like "Assistive technology, such as a screen reader, will not be able to interpret ARIA attributes with invalid values"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -33,6 +33,8 @@ class ARIAValidAttr extends AxeAudit {
category: 'Accessibility',
name: 'aria-valid-attr',
description: 'Element aria-* attributes are valid and not misspelled or non-existent.',
helpText: 'Screen readers may not be able to read elements with invalid ARIA ' +
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest rewording to something like "Assistive technology, such as a screen reader, will not be able to interpret ARIA attributes with invalid attribute names"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -33,6 +33,9 @@ class Label extends AxeAudit {
category: 'Accessibility',
name: 'label',
description: 'Every form element has a label',
helpText: 'Although the purpose of each form element may be obvious ' +
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest rewording to "Labels ensure that form controls are announced properly by assistive technology, such as a screen reader"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@kaycebasques
Copy link
Contributor Author

Hallo mr @robdodson "updates were made"

Copy link
Contributor

@robdodson robdodson left a comment

Choose a reason for hiding this comment

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

LGTM

@ebidel ebidel merged commit 0a14015 into GoogleChrome:master Feb 1, 2017
@kaycebasques kaycebasques deleted the moar-docs branch May 10, 2017 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants