Improves DX by visually highlighting sr-only and accessibility-related classes with subtle decorations, making hidden elements easier to spot during development.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
A Visual Studio Code extension that enhances accessibility development by highlighting elements with the sr-only class and providing a convenient code snippet for quick insertion.
Features
Visual Highlighting: Automatically detects and highlights elements with the sr-only class in HTML, JSX, and TSX files, making hidden elements easier to identify and manage.
Code Snippet: Offers a snippet triggered by typing cmt, which inserts:
How to Use
Highlighting: Open any HTML, React (JSX/TSX), or template file. The extension will automatically highlight elements using the sr-only class.
Snippet Insertion:
In your code editor, type cmt.
Select the suggested snippet to insert the screen-reader-only <span> element.