-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new_audit: add a11y manual audit for interactive element affordance (#…
- Loading branch information
1 parent
731a51a
commit 7fa8ada
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
lighthouse-core/audits/accessibility/manual/interactive-element-affordance.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
/** | ||
* @license Copyright 2018 Google Inc. All Rights Reserved. | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. | ||
*/ | ||
'use strict'; | ||
|
||
const ManualAudit = require('../../manual/manual-audit'); | ||
|
||
/** | ||
* @fileoverview Manual A11y audit for interactive element affordance. | ||
*/ | ||
|
||
class InteractiveElementAffordance extends ManualAudit { | ||
/** | ||
* @return {LH.Audit.Meta} | ||
*/ | ||
static get meta() { | ||
return Object.assign({ | ||
id: 'interactive-element-affordance', | ||
description: 'Interactive elements, such as links and buttons, should indicate their state and be distinguishable from non-interactive elements. [Learn more](https://developers.google.com/web/fundamentals/accessibility/how-to-review#interactive_elements_like_links_and_buttons_should_indicate_their_purpose_and_state).', | ||
title: 'Interactive elements indicate their purpose and state', | ||
}, super.partialMeta); | ||
} | ||
} | ||
|
||
module.exports = InteractiveElementAffordance; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters