Skip to content

Commit

Permalink
fix(rule): fix spelling error (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
wKoza authored and mgechev committed Feb 10, 2019
1 parent d4ebad8 commit 512a5bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/templateAccessibilityTabindexNoPositiveRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ import { getAttributeValue } from './util/getAttributeValue';

export class Rule extends Rules.AbstractRule {
static readonly metadata: IRuleMetadata = {
description: 'Ensures that the tab index is not positive',
description: 'Ensures that the tabindex attribute is not positive',
options: null,
optionsDescription: 'Not configurable.',
rationale: 'positive values for tabidex attribute should be avoided because they mess up with the order of focus (AX_FOCUS_03)',
rationale: 'positive values for tabindex attribute should be avoided because they mess up with the order of focus (AX_FOCUS_03)',
ruleName: 'template-accessibility-tabindex-no-positive',
type: 'functionality',
typescriptOnly: true
};

static readonly FAILURE_MESSAGE = 'Tabindex cannot be positive';
static readonly FAILURE_MESSAGE = 'tabindex attribute cannot be positive';

apply(sourceFile: SourceFile): RuleFailure[] {
return this.applyWithWalker(
Expand Down

0 comments on commit 512a5bd

Please sign in to comment.