lighthouse
Version:
Automated auditing, performance metrics, and best practices for the web.
28 lines (22 loc) • 737 B
JavaScript
/**
* @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 roles.
*/
class CustomControlsRoles extends ManualAudit {
/**
* @return {LH.Audit.Meta}
*/
static get meta() {
return Object.assign({
id: 'custom-controls-roles',
description: 'Custom interactive controls have appropriate ARIA roles. [Learn how to add roles to custom controls](https://developer.chrome.com/docs/lighthouse/accessibility/custom-control-roles/).',
title: 'Custom controls have ARIA roles',
}, super.partialMeta);
}
}
export default CustomControlsRoles;