UNPKG

lighthouse

Version:

Automated auditing, performance metrics, and best practices for the web.

28 lines (22 loc) 744 B
/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import ManualAudit from '../../manual/manual-audit.js'; /** * @fileoverview Manual A11y audit to avoid trapping keyboard focus in a region. */ class FocusTraps extends ManualAudit { /** * @return {LH.Audit.Meta} */ static get meta() { return Object.assign({ id: 'focus-traps', description: 'A user can tab into and out of any control or region without accidentally trapping their focus. [Learn how to avoid focus traps](https://developer.chrome.com/docs/lighthouse/accessibility/focus-traps/).', title: 'User focus is not accidentally trapped in a region', }, super.partialMeta); } } export default FocusTraps;