Skip to main content
Introducing packages.sweber.dev
All posts
Release1 min read

Surjection 0.8.0 released

Show clients what you fixed: before and after images of every resolved issue, in the HTML, PDF and Word report.

By Seya Weber

A report that only lists problems does not show the work behind it. Surjection 0.8.0 adds the other half: what you fixed since the last report, with the element before and after.

What is new in 0.8.0

Free: --compare-with. Pass the results of the previous run and Surjection records every issue that is gone as fixed. With --screenshots it keeps the old screenshot aside before the run overwrites it and photographs the same element again.

npx surjection check --config surjection.config.json --screenshots a11y-shots \
  --compare-with last-a11y.json --out-json a11y.json

Pages are matched by path, so a preview and the live site can be compared. An element that was removed from the page is listed without an after image. At most ten items per page are recorded.

Pro: "Fixed since the last report". The client report gets a new section with the image before and after for every fixed item, in HTML, PDF and the Word document, in German, English, French and Italian. The images have alternative text, the section is part of the table of contents, and the report is still checked for accessibility itself. See the live demo for an example with the made-up bakery site.

One honest limit: many accessibility fixes are invisible. A missing alternative text or label looks the same before and after, so those pairs of images show the same picture. The list of what was fixed is the evidence there; the images shine for contrast, size and layout fixes.

Upgrade

pnpm add -D @sweberdev/surjection@^0.8.0

Nothing breaks: --compare-with is opt-in. Pro customers update the three @weber-development packages to 0.8.0.

Automated tests find only part of all barriers. A passing run is no proof of conformance.

Package in this post

Surjection

Accessibility checks for CI and tests, client-ready reports and accessibility statements in five languages. Built on axe-core, no overlay.

pnpm add -D @sweberdev/surjection
View package

Related posts

Release

Surjection 2.0 released

Flows, a coverage table and component checks in the free package; the WCAG-EM conformance report, an ACR export and re-tests in Pro. Results files move to version 2.

Surjection
Release

Surjection 0.9.0 released

Release candidate for 1.0: big sitemaps in parallel, the accessibility statement straight from the checklist, evidence and reviewer per criterion, and a filter for the client dashboard.

Surjection