Resolve Fail Findings Using QuickFix Panel
This section explains how developers can quickly remediate accessibility Fail violations directly in Visual Studio Code using the built-in Quick Fix panel.
Locating the QuickFix Menu
When A11yInspect detects an accessibility violation, it highlights the affected code line with an inline squiggle and logs it in the A11yInspect panel. You can access the Quick Fix menu through three convenient methods:
- Hover Card Action: Hover your cursor over the underlined code element to open the diagnostic card, then select Quick Fix.
- Lightbulb Icon / Keyboard Shortcut: Select the line of code containing the issue and select the VS Code lightbulb icon (
Cmd + .on macOS orCtrl + .on Windows/Linux). - A11yInspect Sidebar: Select on any Fail item listed in the A11yInspect panel to jump directly to the line in your source file.
Reviewing & Applying Automated Fixes
A11yInspect includes over 150 ready-made quick fixes for the most common accessibility issues. These fixes execute instantly without requiring external AI processing or API calls. Selecting a fix from the menu immediately refactors your markup to meet the required WCAG success criterion.
- Missing Image Descriptions: Automatically inserts missing alt attributes or sets
alt=""for purely decorative images. - Unlabeled Form Fields: Appends missing
<label>tags or for attributes to form input controls. - Buttons & Links Without Names: Adds missing aria-label attributes to icon buttons or links that lack accessible text.
- Document & Element Metadata: Appends missing lang attributes to root tags or corrects invalid ARIA role declarations.
AI-Assisted Remediation (Enterprise Plan)
For complex violations that require structural code rewrites, Enterprise users can leverage A11yAssist AI directly from the same menu.
- Fix with AI: Generates a tailored code update for review before applying it to your file.
- Explain with AI: Opens a plain-English explanation detailing the rule, who is impacted, and the recommended design pattern.
Verifying Resolution
Once a Quick Fix or AI rewrite is applied:
- A11yInspect automatically re-evaluates the updated element.
- The inline squiggle highlight clears from the editor.
- The issue counts in the A11yInspect sidebar and Problems panel updates immediately.