The Accessibility Tracker is a Chrome extension designed to identify and report common accessibility issues on web pages. It scans the DOM for potential problems and provides detailed reports to help developers improve the accessibility of their websites.
- Missing Alt Text: Detects images without
altattributes. - Low Contrast: Identifies elements with insufficient contrast ratios based on WCAG standards.
- Missing Labels: Finds form elements without associated labels.
- Non-Keyboard Accessible Elements: Highlights elements that are not accessible via keyboard navigation.
- Clone the repository:
git clone <repository-url>
- Navigate to the project directory:
cd accessbility-tracker - Load the extension in Chrome:
- Open Chrome and go to
chrome://extensions/. - Enable Developer mode.
- Click Load unpacked and select the
accessbility-trackerfolder.
- Open Chrome and go to
- Open a web page you want to analyze.
- The extension will automatically scan the page for accessibility issues.
- Results are sent to the background script and can be viewed in the console or processed further.
- The
content.jsscript runs in the context of the web page and performs the following checks:- Missing Alt Text: Uses
document.querySelectorAllto find images withoutaltattributes. - Low Contrast: Calculates contrast ratios using WCAG guidelines.
- Missing Labels: Checks for form elements without associated
<label>tags. - Non-Keyboard Accessible Elements: Identifies elements that are not focusable or lack proper
tabindexattributes.
- Missing Alt Text: Uses
Feel free to fork the repository and submit pull requests for new features or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.