Skip to content

Commit 952af25

Browse files
breadadamsljharb
authored andcommitted
[Fix] no-access-key: Fix wording and grammar
Fixes #801.
1 parent 6cf7ac0 commit 952af25

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

__tests__/src/rules/no-access-key-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import rule from '../../../src/rules/no-access-key';
1919
const ruleTester = new RuleTester();
2020

2121
const expectedError = {
22-
message: 'No access key attribute allowed. Inconsistencies between keyboard shortcuts and keyboard comments used by screenreader and keyboard only users create a11y complications.',
22+
message: 'No access key attribute allowed. Inconsistencies between keyboard shortcuts and keyboard commands used by screenreaders and keyboard-only users create a11y complications.',
2323
type: 'JSXOpeningElement',
2424
};
2525

docs/rules/no-access-key.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# no-access-key
22

3-
Enforce no accessKey prop on element. Access keys are HTML attributes that allow web developers to assign keyboard shortcuts to elements. Inconsistencies between keyboard shortcuts and keyboard commands used by screenreader and keyboard only users create accessibility complications so to avoid complications, access keys should not be used.
3+
Enforce no accessKey prop on element. Access keys are HTML attributes that allow web developers to assign keyboard shortcuts to elements. Inconsistencies between keyboard shortcuts and keyboard commands used by screenreaders and keyboard-only users create accessibility complications so to avoid complications, access keys should not be used.
44

55
### References
66
1. [WebAIM](http://webaim.org/techniques/keyboard/accesskey#spec)

src/rules/no-access-key.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import { getProp, getPropValue } from 'jsx-ast-utils';
1111
import { generateObjSchema } from '../util/schemas';
1212

13-
const errorMessage = 'No access key attribute allowed. Inconsistencies between keyboard shortcuts and keyboard comments used by screenreader and keyboard only users create a11y complications.';
13+
const errorMessage = 'No access key attribute allowed. Inconsistencies between keyboard shortcuts and keyboard commands used by screenreaders and keyboard-only users create a11y complications.';
1414

1515
const schema = generateObjSchema();
1616

0 commit comments

Comments
 (0)