Skip to content

JonUK/lighthouse-custom-audit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lighthouse custom audit

An example of a Lighthouse custom audit that checks DOM elements.

This repository contains a Lighthouse custom audit to check for the well known web accessibility issue of adding a click handler to a non-interactive element and not ensuring it’s accessible for keyboard and screen reader users.

The following article accompanies this repository. https://keepinguptodate.com/pages/2021/08/custom-lighthouse-audit/

Run the static server for the test HTML page

npm run serve

Run the custom audit against the test HTML page

npm run lighthouse

Lighthouse report summary


Lighthouse-custom-section-results

About

An example of a Lighthouse custom audit that checks DOM elements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published