Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.21 KB

File metadata and controls

46 lines (32 loc) · 1.21 KB

ember/template-no-accesskey-attribute

💼 This rule is enabled in the 📋 template-lint-migration config.

🔧 This rule is automatically fixable by the --fix CLI option.

Disallows the use of accesskey attribute on elements.

The accesskey attribute creates inconsistencies between keyboard shortcuts and keyboard commands used by screen readers and keyboard-only users, causing accessibility issues.

Examples

Examples of incorrect code for this rule:

<template>
  <button accesskey="s">Save</button>
</template>
<template>
  <a href="#" accesskey="h">Home</a>
</template>

Examples of correct code for this rule:

<template>
  <button>Save</button>
</template>
<template>
  <a href="#">Home</a>
</template>

References