Zugang is a VS Code extension designed to improve the accessibility of your HTML and React/TypeScript (.tsx) code. By providing warnings and suggestions, it helps you meet accessibility standards in a structured and intuitive way.
Zugang currently offers warnings and hints when your HTML or .tsx code lacks essential elements, tags, or attributes necessary for proper accessibility. The extension focuses on common mistakes such as:
lang
on the <html>
tag).h1 -> h2 -> h3
...).Each warning is accompanied by specific suggestions for improvement, helping you understand the issue and make the necessary corrections.
After installing the extension, create an .html
or .tsx
file and focus on the file to see the annotations.
The warnings provided are based on general best practices. However, in real-world scenarios, there may be valid reasons to deviate from these rules depending on the specific context. A general extension cannot always account for these variations. Additionally, the actual accessibility of a particular element is often influenced by the complex interplay of HTML, CSS, and JavaScript.
Support for .tsx
and .html
files will continue to expand, ensuring accessibility best practices are maintained across both standard HTML and React/TypeScript projects.
To install the extension:
Zugang
in the marketplace.The current version is v0.1.0. Expect frequent updates as new features and improvements are implemented.
This project drew inspiration from Manuel Matuzović's excellent book, “Web Accessibility Cookbook”, a lecture by chrcit, and Mary Sutton's courses on Frontend Masters
Create a branch on your fork, add commits to your fork, and open a pull request from your fork to this repository.
To check full changelog click here