ember/template-no-accesskey-attribute
April 20, 2026 ยท View on GitHub
๐ผ 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>