Skip to main content

How to Run WCAG Checks

The WCAG checks is the BarrierBreak's accessibility ruleset which is built from BarrierBreak's experience auditing thousands of digital products, and it is applied to the markup. Nearly hundreds of rules are available, covering images, forms, links, headings, landmarks, tables, ARIA usage, language, and more.

To run the checks, proceed with the following steps:

  1. Open VS Code.
  2. Install the A11yInspect VS Code Extension (Refer the Install section).
  3. Go to your code base
  4. Open the A11yInspect Extension Panel on the left.
  5. Run the check by selecting the A11yInspect Run Accessibility Check option. It generates the result and highlights the findings.

How a check works​

Every A11yInspect scan follows the same four-step process, whether it runs in the VS Code extension or as part of a CI/CD pipeline.

StepWhat HappensOutcome
ReadA11yInspect analyzes the source file and determines the HTML markup that will be rendered in the browser. It supports HTML, React, Vue, Angular, and other supported frameworks.The application's rendered structure is prepared for accessibility evaluation.
CheckThe generated markup is evaluated against BarrierBreak's accessibility ruleset covering elements such as images, forms, links, headings, tables, landmarks, language attributes, and ARIA implementation.Accessibility issues and potential violations are identified.
Map to WCAGEach finding is mapped to the relevant WCAG Success Criterion and conformance level (A, AA, or AAA). A11yInspect also provides descriptions and recommended remediation guidance.Developers receive clear context about the issue and its compliance impact.
Present ResultsResults are displayed directly within the developer workflow, either as inline editor findings or as reports generated during CI/CD execution.Issues are easy to review, prioritize, and fix.

Understanding the Results​

The Four Finding Types​

Every finding generated by A11yInspect is categorized into one of four standard result types:

  • Fail: Represents a definite accessibility violation that must be resolved to achieve WCAG conformance.
  • Validate: Identifies a potential issue which requires a human judgment to confirm compliance, such as evaluating whether image alt text is meaningful.
  • Suggestion: Recommends a best-practice design or markup improvement that enhances the experience for all users.
  • Pass: Records a check that was evaluated and passed, serving as audit evidence (available on the Enterprise plan).

Anatomy of Finding​

Each result provides four key details to make identification and remediation straightforward:

  • Finding Type & Problem Summary: Identifies the result classification (e.g., Fail) alongside a clear explanation of what is wrong.
  • WCAG Mapping & Level: Links the issue directly to its corresponding WCAG success criterion and conformance level (Example – “WCAG 1.1.1 Non-text Content · Level A”)
  • Fix Guidance: Explains how the issue impacts users (such as screen reader users) and provides actionable instructions on how to correct the code.
  • Exact Source Location: Pinpoints the precise file path, line number, and column position in your source code.

Filtering and Customizing Result Views​

  • Filtering: Users/Teams can independently display or hide specific result types, such as focusing initially on Fail items before addressing Validate items. Allowing project accessibility standards to mature over time.
  • Rule Exclusions: Specific rules can be turned off project-wide if they do not apply to your application's architecture.