Skip to content

Commit eea9feb

Browse files
authored
Merge branch 'master' into greenkeeper/flow-bin-0.113.0
2 parents 7a55cdd + f1c8fdf commit eea9feb

File tree

8 files changed

+11
-9
lines changed

8 files changed

+11
-9
lines changed

__tests__/__util__/axeMapping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
import * as axe from 'axe-core';
33

44
export function axeFailMessage(checkId, data) {
5-
return axe._audit.data.checks[checkId].messages.fail(data);
5+
return axe.utils.getCheckMessage(checkId, 'fail', data);
66
}

__tests__/src/rules/label-has-associated-control-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const htmlForValid = [
3030
{ code: '<label htmlFor="js_id"><span><span><span>A label</span></span></span></label>', options: [{ depth: 4 }] },
3131
{ code: '<label htmlFor="js_id" aria-label="A label" />' },
3232
{ code: '<label htmlFor="js_id" aria-labelledby="A label" />' },
33+
{ code: '<div><label htmlFor="js_id">A label</label><input id="js_id" /></div>' },
3334
// Custom label component.
3435
{ code: '<CustomLabel htmlFor="js_id" aria-label="A label" />', options: [{ labelComponents: ['CustomLabel'] }] },
3536
{ code: '<CustomLabel htmlFor="js_id" label="A label" />', options: [{ labelAttributes: ['label'], labelComponents: ['CustomLabel'] }] },

docs/rules/aria-activedescendant-has-tabindex.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# aria-activedescendant-has-tabindex
22

3-
`aria-activedescendant` is used to manage focus within a [composite widget](https://www.w3.org/TR/wai-aria/roles#composite_header).
3+
`aria-activedescendant` is used to manage focus within a [composite widget](https://www.w3.org/TR/wai-aria/#composite).
44
The element with the attribute `aria-activedescendant` retains the active document
55
focus; it indicates which of its child elements has secondary focus by assigning
66
the ID of that element to the value of `aria-activedescendant`. This pattern is

docs/rules/aria-proptypes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
ARIA state and property values must be valid.
44

55
#### References
6-
1. [Spec](https://www.w3.org/TR/wai-aria/states_and_properties)
6+
1. [Spec](https://www.w3.org/TR/wai-aria/#states_and_properties)
77
2. [AX_ARIA_04](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_04)
88

99
## Rule details

docs/rules/role-has-required-aria-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Elements with ARIA roles must have all required attributes for that role.
44

55
#### References
6-
1. [Spec](https://www.w3.org/TR/wai-aria/roles)
6+
1. [Spec](https://www.w3.org/TR/wai-aria/#roles)
77
2. [AX_ARIA_03](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_03)
88

99
## Rule details

docs/rules/role-supports-aria-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Enforce that elements with explicit or implicit roles defined contain only `aria
44

55
#### References
66
1. [AX_ARIA_10](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_10)
7-
2. [Supported States & Properties](https://www.w3.org/TR/wai-aria/roles#supportedState)
7+
2. [Supported States & Properties](https://www.w3.org/TR/wai-aria/#states_and_properties)
88

99
## Rule details
1010

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
"@babel/plugin-transform-flow-strip-types": "^7.2.3",
3636
"babel-eslint": "^10.0.1",
3737
"babel-jest": "^24.0.0",
38-
"babel-preset-airbnb": "^4.0.0",
38+
"babel-preset-airbnb": "^5.0.0",
3939
"coveralls": "^3.0.1",
4040
"eslint": "^3 || ^4 || ^5 || ^6",
4141
"eslint-config-airbnb-base": "^14.0.0",
42-
"eslint-plugin-flowtype": "^4.5.2",
42+
"eslint-plugin-flowtype": "^5.0.0",
4343
"eslint-plugin-import": "^2.18.0",
4444
"estraverse": "^4.2.0",
4545
"expect": "^24.3.1",
@@ -62,10 +62,10 @@
6262
"aria-query": "^4.0.1",
6363
"array-includes": "^3.0.3",
6464
"ast-types-flow": "^0.0.7",
65-
"axe-core": "^3.4.0",
65+
"axe-core": "^3.5.2",
6666
"axobject-query": "^2.1.1",
6767
"damerau-levenshtein": "^1.0.4",
68-
"emoji-regex": "^7.0.2",
68+
"emoji-regex": "^9.0.0",
6969
"has": "^1.0.3",
7070
"jsx-ast-utils": "^2.2.1"
7171
},

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
'aria-proptypes': require('./rules/aria-proptypes'),
1212
'aria-role': require('./rules/aria-role'),
1313
'aria-unsupported-elements': require('./rules/aria-unsupported-elements'),
14+
'autocomplete-valid': require('./rules/autocomplete-valid'),
1415
'click-events-have-key-events': require('./rules/click-events-have-key-events'),
1516
'control-has-associated-label': require('./rules/control-has-associated-label'),
1617
'heading-has-content': require('./rules/heading-has-content'),

0 commit comments

Comments
 (0)