Ever wondered how accessible your website is as a whole? There are a lot of free tools available to automatically test individual pages: Axe, WAVE, Alfa to name a few. However options are more scarce when it comes to testing multiple pages of a site, or the whole site, or testing pages over time. Rather than having to procure a new tool, what if we instead added accessibility checking to the site’s administration features?
Turns out this isn’t a new idea, and is one of the many things the ATAG standard mandates. We recently did an ATAG audit of Wagtail, and now realize there is plenty to do for us to bring our accessibility checker to its full potential.
What ATAG says
ATAG covers a lot of things! At the highest level, it requires content administration tools (like a CMS, a document editor, or the Django admin) to be accessible, and to promote the production of accessible content. This is why we created Wagtail’s accessibility checker, which ships with 8 checks all related to possible content issues, as per ATAG guidelines. The checker is currently supported as part of Wagtail’s toolbar on draft and live pages, and in the next release will become available within Wagtail’s live preview. This will allow faster checks of page content as part of editing, and checks for non-page content (arbitrary Django models, really) via Wagtail’s PreviewMixin and snippets features.
Here’s an early iteration of the checker within the page editor, validating a Django model’s content:
It’s clear enough – we can use our checker to its fullest potential by:
- Having more checks.
- Checking over time, storing the reports so users can track the relevant metrics.
- Providing suggestions for possible fixes.
Check all the things
Even though our checker has very few rules turned on, it’s actually a full-blown copy of Axe. There is nothing preventing us from running all of the checks! Though all the results might not be relevant to all, we can then deliver different results to users based on their roles. For example, admin users could see the full results, while editors could get more focused and actionable feedback.
Check over time
Since we’re running our checks whenever editors work on a page, we might as well store the results! Though historical data isn’t necessarily always helpful, it helps in encouraging possible improvements. Our latest designs showcase this data as a sparkline displaying an accessibility score, based on summarizing the result of the individual checks:
In this scenario, a perfect “100” score would only mean no issues detected, which isn’t the same as there being no issues for real-world users – but still a valuable baseline to aim for.
View our Content quality checkers for the latest design iterations and to provide your feedback.
Having issues flagged is nice, but from there ATAG standard also says we should provide "Repair Assistance": suggestions to help repair any issues. We agree! This feels like a natural improvement over the checks, and also a great occasion to leverage modern approaches such as generative AI. For example, with computer vision and large language models, we can:
- Generate alternative text where it’s missing. Taking the surrounding content into account, to generate the best possible alt text in context.
- Suggest rewordings for copy with jargon or overly-long sentences detected. Similar to OpenAI’s GPTs and their Creative Writing Coach.
We expect to have a few go-to generative AI integrations as optional packages, with clear APIs for Wagtail package maintainers to create their own variants.
Report on results
From there, we can report on scores in other areas of the administrative interface, such as the dashboard.
In this scenario, the “52” site-level accessibility score would be derived from the scores of individual pages, possibly with weighting.
View our Dashboard enhancements discussion for the latest design iterations and to provide your feedback.
Back in May, we blogged about how accessible Wagtail sites are. Within the next two to three years, we expect the improvements discussed here will take us from an above-average score of 85 to:
- Leading the industry in the number of "perfect", "no-issues-detected" sites
- Overtaking WordPress and Drupal websites in aggregated accessibility scores
Making this happen
Even though the types of checks showcased here are a fundamental requirement of meeting accessibility standards, very few content management systems consider them as a built-in feature, well-integrated with different aspects of the CMS.
We’re looking for sponsorships to accelerate this work. The checks are already on the Wagtail roadmap, along with 6 other areas of accessibility improvements in the Wagtail universe. With the right support, we can make all of this happen in 2024. View our guidance for feature sponsors, and reach out to our accessibility team to talk feasibility.
Make accessibility a priority with Wagtail CMS - Webinar
Join us on December 13th to explore accessibility within the world of Wagtail CMS. Whether you're a seasoned Wagtail editor, a developer, or on the hunt for an open-source CMS that prioritizes accessibility - this event is for you.