UNPKG

lighthouse

Version:

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

28 lines (22 loc) 790 B
/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import ManualAudit from '../../manual/manual-audit.js'; /** * @fileoverview Manual A11y audit to assert custom controls have associated labels. */ class CustomControlsLabels extends ManualAudit { /** * @return {LH.Audit.Meta} */ static get meta() { return Object.assign({ id: 'custom-controls-labels', description: 'Custom interactive controls have associated labels, provided by aria-label or aria-labelledby. [Learn more about custom controls and labels](https://developer.chrome.com/docs/lighthouse/accessibility/custom-controls-labels/).', title: 'Custom controls have associated labels', }, super.partialMeta); } } export default CustomControlsLabels;