A comprehensive JavaScript tool for testing modal dialog accessibility compliance with WCAG and WAI-ARIA guidelines. Provides automated checks, interactive tests, and visual reporting.
- Added Chart.js integration for visual results
- Implemented interactive keyboard navigation tests
- Enhanced automated ARIA validation
- Added HTML report export functionality
- Improved test result visualization
- 🔍 Automated Testing: Validates ARIA roles, attributes and focus management
- ⌨️ Interactive Tests: Guides through keyboard navigation verification
- 📊 Visual Reports: Charts and timelines of test results
- 📑 Export: Generate detailed HTML accessibility reports
- Create a new bookmark in your browser
- Copy the minified code from
modalA11yCheck.min.js - Paste as the bookmark URL
- Navigate to any page with modal dialogs
- Click the bookmarklet
- Review test results:
- 🟢 Pass: Meets accessibility requirements
- 🔴 Fail: Issues detected
- 🟡 Warning: Potential concerns
- Complete interactive tests
- Export detailed report
The tool checks:
- ARIA roles and attributes
- Focus management
- Keyboard interaction
- Background interaction
- Modal labeling
- Dialog role validation
- ARIA modal attributes
- Focus trap implementation
- Accessible name verification
- Background interaction blocking
- Keyboard navigation
- Focus management
- Escape key handling
- Focus restoration
- Chart.js Integration: Visual data representation
- Performance: Optimized DOM operations
- Accessibility: WAI-ARIA compliant UI
- Modular Design: Maintainable code structure
- Accessibility Compliance: Ensure WCAG conformance
- UX Testing: Validate modal interactions
- Quality Assurance: Quick accessibility checks
- Documentation: Generate compliance reports
- Zero Setup: Works directly in browser
Works in modern browsers:
- Chrome
- Firefox
- Safari
- Edge
This tool:
- Only tests modal dialog accessibility
- Requires manual verification for some tests
- Does not fix detected issues
- Focuses on WCAG 2.1 requirements
- Additional automated tests
- Enhanced reporting features
- Test configuration options
- Accessibility fixes suggestions
Feel free to contribute by submitting issues or pull requests to enhance the tool's functionality or improve documentation. Your feedback is welcome!
- Fork the repository
- Modify the main
modalA11yCheck.jsfile - Submit a pull request
Note: The minified version will be automatically generated during the build process - you only need to work with the main JavaScript file.