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 0.3.0 released

A keyboard check for focus traps and missing focus indicators, checks behind a login, and status badges per client project in Surjection Pro.

Surjection
Release

Surjection 0.4.0 released

Screenshots of every affected element as evidence in client reports, and a regression check that tells you when a client site got worse overnight.

Surjection
Release

Surjection 0.5.0 released

Two more criteria tested automatically, reflow at 320 pixels and text spacing, and the manual checklist of Surjection Pro in French and Italian.

Surjection