Skip to content

Commit

Permalink
[Fix] no-access-key: Fix wording and grammar
Browse files Browse the repository at this point in the history
Fixes #801.
  • Loading branch information
breadadams authored and ljharb committed Jun 16, 2021
1 parent 6cf7ac0 commit 952af25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion __tests__/src/rules/no-access-key-test.js
Expand Up @@ -19,7 +19,7 @@ import rule from '../../../src/rules/no-access-key';
const ruleTester = new RuleTester();

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

Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-access-key.md
@@ -1,6 +1,6 @@
# no-access-key

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.
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.

### References
1. [WebAIM](http://webaim.org/techniques/keyboard/accesskey#spec)
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-access-key.js
Expand Up @@ -10,7 +10,7 @@
import { getProp, getPropValue } from 'jsx-ast-utils';
import { generateObjSchema } from '../util/schemas';

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

const schema = generateObjSchema();

Expand Down

0 comments on commit 952af25

Please sign in to comment.