Skip to content

Commit 57d87fb

Browse files
committed
[Docs] Error messages: Use consistent spelling of 'screen reader'
1 parent e62df5d commit 57d87fb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

__tests__/src/rules/anchor-ambiguous-text-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const DEFAULT_AMBIGUOUS_WORDS = [
2727
];
2828

2929
const expectedErrorGenerator = (words) => ({
30-
message: `Ambiguous text within anchor. Screenreader users rely on link text for context; the words "${words.join('", "')}" are ambiguous and do not provide enough context.`,
30+
message: `Ambiguous text within anchor. Screen reader users rely on link text for context; the words "${words.join('", "')}" are ambiguous and do not provide enough context.`,
3131
type: 'JSXOpeningElement',
3232
});
3333

__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 commands used by screenreaders and keyboard-only users create a11y complications.',
22+
message: 'No access key attribute allowed. Inconsistencies between keyboard shortcuts and keyboard commands used by screen readers and keyboard-only users create a11y complications.',
2323
type: 'JSXOpeningElement',
2424
};
2525

src/rules/anchor-ambiguous-text.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default ({
6060

6161
context.report({
6262
node,
63-
message: 'Ambiguous text within anchor. Screenreader users rely on link text for context; the words "{{wordsList}}" are ambiguous and do not provide enough context.',
63+
message: 'Ambiguous text within anchor. Screen reader users rely on link text for context; the words "{{wordsList}}" are ambiguous and do not provide enough context.',
6464
data: {
6565
wordsList: words.join('", "'),
6666
},

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 commands used by screenreaders and keyboard-only users create a11y complications.';
13+
const errorMessage = 'No access key attribute allowed. Inconsistencies between keyboard shortcuts and keyboard commands used by screen readers and keyboard-only users create a11y complications.';
1414

1515
const schema = generateObjSchema();
1616

0 commit comments

Comments
 (0)