[{"data":1,"prerenderedAt":368},["ShallowReactive",2],{"article-\u002Fblog\u002Fsustainable-path-towards-accessibility":3},{"id":4,"title":5,"articleIndex":6,"body":7,"date":358,"description":359,"extension":360,"meta":361,"minRead":362,"navigation":363,"path":364,"seo":365,"stem":366,"__hash__":367},"blog\u002Fblog\u002Fsustainable-path-towards-accessibility.md","Scaling for a sustainable path towards accessibility",0,{"type":8,"value":9,"toc":348},"minimark",[10,14,19,28,32,35,43,46,49,53,64,70,77,80,84,90,238,241,270,283,295,302,309,313,316,323,326,329,333,339,342,345],[11,12,13],"p",{},"Perfect is the enemy of good, and I learned it the hard way. In 2023, when\nI set up the Product Accessibility Working Group at GitLab, I wanted\nto find the best way to run automated accessibility tests for our product. It\nturned out that in a codebase as complex as GitLab's is, accessibility only\nholds up at scale, with layers of protection. The layers are both tools and\npeople. None of the layers is perfect on its own, but together, they result in\nfewer regressions and better user experience.",[15,16,18],"h2",{"id":17},"good-intentions-are-not-enough","Good intentions are not enough",[11,20,21,22,27],{},"As I was onboarding as a new Frontend Engineer, I wasn't sure\nwhat the state of things was. There were dedicated individuals working with\naccessibility in mind. There was an evolving design system that was supposed to\nguarantee a good baseline,\na ",[23,24,26],"abbr",{"title":25},"Voluntary Product Accessibility Template","VPAT","\n(Voluntary Product Accessibility Template) was prepared for every major version.\nHowever, it became clear to me that there wasn't any designated person or\na team who knew the whole picture. We didn't have any guardrails or\nautomations filtering incoming regressions. For a big open-core project\nwith hundreds of engineers and community contributions, we didn't have\na way to improve accessibility in a sustainable way. That is what\nmoved me to take all steps necessary to have the Product Accessibility Working\nGroup become a reality.",[15,29,31],{"id":30},"choosing-tools","Choosing tools",[11,33,34],{},"The two main goals for our Working Group were tests targeting components of the\ndesign system and feature tests in the main application. But with an application\nas complex as GitLab, I had to first explore all the possible options for\nsuch automation. Tool exploration is definitely a topic in itself and\na great material for another article. I focused on the limitations of\neach tool and how easy it was to set up and use. The design system repository\nand the main application repository were very different, but there had to be\na common way of assessing accessibility violations.",[11,36,37,38,42],{},"We decided to use the axe-core testing engine, which is the most versatile. With\naxe-core, you can approach problems in many ways, like we did while testing our\ndesign system. Initially we opted for Cypress end-to-end tests with the\ncypress-axe plugin. Each component had to have test cases written for each\nvariant and state to maximise the test coverage. Later on, we shifted towards\na Storybook test-runner integrated with axe-core. Because having Storybook\nentries was in the definition of done for each component, we could take\nadvantage of them and run the tests in a \n",[23,39,41],{"title":40},"Continuous Integration","CI"," (Continuous Integration) job\nwithout a need to write any test cases.",[11,44,45],{},"To speed up the adoption of automated tests in the main repository,\nI reviewed available paid tools that let you connect your entire test suite\nand run accessibility checks on each test. It seemed a promising solution,\none that required only some time for initial setup to see the effects.",[11,47,48],{},"However, you should know your own limitations as well as your tools. For\nexample, is your testing library supported by the provider you are considering?\nWhat is the volume of your tests? How often and in which context do they run?\nUltimately, we decided to extend how we used open-source tools we had already\nbeen using, instead of introducing new ones.",[15,50,52],{"id":51},"why-the-perfect-test-didnt-fit","Why the perfect test didn't fit",[11,54,55,56,60,61,63],{},"Feature tests sounded like a great idea for the application's monorepo,\nbecause they run against components from both\n",[23,57,59],{"title":58},"HTML Abstraction Markup Language","HAML"," (HTML Abstraction\nMarkup Language) and Vue.js files that made up the whole views of the\napplication. We could then work around the lack of ",[23,62,59],{}," tooling and\nsome instances of elements composed in Ruby on Rails. Having feature tests would\nalso make sure the integration of each design system component was tested.\nHowever, these tests are written around features and their functionality. There\nwasn’t an easy way to map how much of the UI is covered with them. Their\nloose structure also meant that one spec might exercise a single component,\nwhile another walks a flow across several views. In the end, some views\nwere covered three times and others not at all.",[11,65,66,67,69],{},"The other complication was the variation in data samples and possible\nflakiness of tests. The feature tests are set up in a way, where the\nUI you test depends on the data each spec happens to create. To save on\n",[23,68,41],{}," time, it often creates only the minimum information needed for\nthe components to render. Which in turn further diminishes the coverage that is\npossible to achieve. a coupling of accessibility checks to functionality\nmeans that a failing test (flaky or not) might not reach the point when the\naccessibility check happens. It may simply never run. If any test case is\nquarantined, we lose our regression net.",[11,71,72,73,76],{},"These problems were compounded by the fact that the test output was disconnected\nfrom frontend components. Complex UI components that rendered into\na series of general ",[23,74,75],{},"HTML"," elements made it harder to pinpoint\nwhere violations actually happened. Given that these feature tests were written\nin Ruby, but sat in a frontend toolkit, GitLab’s frontend engineers\nstruggled to adopt them and make them a part of their usual workflow. Sure,\nthe tool had its limits, but ultimately it did not fit how our teams worked.",[11,78,79],{},"After seeing a low adoption of feature tests, we decided to pivot to\na different approach. By focusing on golden user journeys, we opted to\ncover end-to-end user workflows defined by Product Designers. This meant\nsacrificing the volume of components and their states we could cover. That's\nwhy, at the same time, we made sure to build a system of layers that would\ngradually filter out violations.",[15,81,83],{"id":82},"layers-that-cover-each-others-gaps","Layers that cover each other's gaps",[11,85,86,87,89],{},"The layers of accessibility automations can be divided along two dimensions:\nblind spots, and enforcement. They work together because blind spots of\ndifferent layers overlap only partially. Layers that can be skipped are backed\nup by layers that can’t be. Some layers are optional (linting or the browser\nextension) or only observed (monitoring). Others are blocking: Storybook and\nfeature tests run in ",[23,88,41],{}," and stop a merge when they find\na violation.",[91,92,95,96],"div",{"className":93},[94],"table-container","\n  ",[97,98,99,100,220,95],"table",{},"\n    ",[101,102,103,99,124,99,143,99,165,99,187,99,204,99],"tbody",{},[104,105,106,107,106,112,106,115,106,118,106,121,99],"tr",{},"\n      ",[108,109,111],"th",{"scope":110},"col","Tool ",[108,113,114],{"scope":110},"When to use",[108,116,117],{"scope":110},"Coverage",[108,119,120],{"scope":110},"Feedback timing",[108,122,123],{"scope":110},"Enforcement",[104,125,106,126,106,130,106,134,106,137,106,140,99],{},[108,127,129],{"scope":128},"row","linting",[131,132,133],"td",{},"while writing code",[131,135,136],{},"JS, Vue, Markdown files",[131,138,139],{},"real-time in editor",[131,141,142],{},"optional ",[104,144,106,145,106,148,106,151,106,154,106,160,99],{},[108,146,147],{"scope":128},"Storybook tests",[131,149,150],{},"component development, feature development",[131,152,153],{},"Vue components in isolation",[131,155,156,157,159],{},"local testing and ",[23,158,41],{}," pipeline on frontend changes",[131,161,162,163],{},"blocking in ",[23,164,41],{},[104,166,106,167,106,170,106,173,106,179,106,183,99],{},[108,168,169],{"scope":128},"feature tests",[131,171,172],{},"feature development",[131,174,175,176,178],{},"complete user journeys, ",[23,177,59],{},", Vue, JS components",[131,180,156,181,159],{},[23,182,41],{},[131,184,162,185],{},[23,186,41],{},[104,188,106,189,106,192,106,195,106,198,106,201,99],{},[108,190,191],{"scope":128},"browser extension",[131,193,194],{},"feature development, code review & debugging",[131,196,197],{},"any page or part of the page",[131,199,200],{},"manual, immediate",[131,202,203],{},"advisory",[104,205,106,206,106,209,106,212,106,215,106,218,99],{},[108,207,208],{"scope":128},"SiteSpeed monitoring",[131,210,211],{},"production oversight",[131,213,214],{},"key application pages",[131,216,217],{},"continuous monitoring",[131,219,203],{},[221,222,223,224,231,232,237],"caption",{},"\n      Source: Adapted from ",[225,226,230],"a",{"href":227,"className":228},"https:\u002F\u002Fdocs.gitlab.com\u002F19.5\u002Fdevelopment\u002Ffe_guide\u002Faccessibility\u002F#how-our-accessibility-tools-work-together",[229],"inline-link","Accessibility. How our accessibility tools work together",",\n      GitLab Docs, with an added Enforcement column, licensed under ",[225,233,236],{"href":234,"className":235},"https:\u002F\u002Fcreativecommons.org\u002Flicenses\u002Fby-sa\u002F4.0\u002F",[229],"CC BY-SA 4.0",".\n    ",[11,239,240],{},"Here is how we used each of these layers, along with their limitations and\nadvantages.",[11,242,243,247,248,250,251,253,254,259,260,262,263,266,267,269],{},[244,245,246],"strong",{},"Linting"," offers the most immediate feedback to engineers, but it also comes\nwith quite a number of limitations. Because it works against source code,\nnot rendered ",[23,249,75],{},", the number of violations it can find is even\nlower than what other automations offer. In case of more custom syntax, like\n",[23,252,59],{},", it also has limited tool options. In addition,\n",[225,255,258],{"className":256,"href":257},[229],"https:\u002F\u002Fgitlab.com\u002Fgitlab-org\u002Fgitlab\u002F-\u002Fblob\u002Fe5cb1a0ddf53ad9ae7b28b5ade7407d16fe5389f\u002Faxe-linter.yml","design\nsystem components need to be mapped"," to ",[23,261,75],{}," elements for\naxeLinter, the ",[23,264,265],{},"VS"," Code extension. From my experience, mapping may\nnot be adaptable enough to cover more flexible components. We made it the\ndefault recommended extension for the project, but we had to accept not all\ncontributors would use it. Nonetheless, I have seen real results with new\nmerge requests and code reviews referencing the findings of axeLinter in\n",[23,268,265],{}," Code.",[11,271,272,273,276,277,279,280,282],{},"Our ",[244,274,275],{},"Storybook layer"," consisted of two instances, one in the design system and\nthe other in the app's monorepo. This made sure we catch any violations as early\nas possible and keep the output of the next bigger layer lean, because the\nfeature tests didn’t have to rediscover component-level problems. We decided to\nadditionally pair the accessibility plugin in the Storybook UI with a \ntest-runner with axe-core. This opened for us an option to automatically run\nchecks on all components in ",[23,278,41],{},". Fixing test violations allowed us\nto switch the ",[23,281,41],{}," job from \"allowed to fail\" to \"completely\nblocking\". It’s a great help for frontend engineers, but it also has its\nlimitations. These tests can’t identify whether components are assembled into\na section that is accessible as a whole. Also, if a design system\nis flexible enough, it can be hard to enforce that components are consumed in\na way that is accessible; for example: not every property is used and those\nthat are missing result in non-compliant code.",[11,284,272,285,288,289,291,292,294],{},[244,286,287],{},"feature test layer"," meant we could follow the golden user journeys\ndefined by the UX Department, and not the scenarios following the functional\ntest suites. It gave us the option to cover complex UI interactions, with\nmulti-step processes and dynamic content. Engineers could run them locally,\nwhile working on existing critical features. Feature tests can also run in the\n",[23,290,41],{},", blocking any newly found regressions. They can bridge the gap\nStorybook has - whether components put together and interactions between them\ncreate accessible pages and follow complex ARIA patterns. However, creating\nfeature tests is a more elaborate process. It requires product-area\nknowledge. It is quite heavy on resources, like ",[23,293,41],{}," minutes or\ndevelopers' time. It's not realistic to have a high coverage on this level,\nbut the coverage you get is detailed and can run the checks after each scripted\nuser interaction.",[11,296,297,298,301],{},"The ",[244,299,300],{},"axe DevTools browser extension"," is a great tool for quickly scanning\nthe whole page or its section during development of new features or fixing\nviolations. The extension highlights specific violations and their source and\nallows reviewers to share them as feedback on merge requests. Unfortunately, it\nis triggered manually, and we humans tend to forget things from time to time.\nAlso, some of the features of axe DevTools are only available in the pro\nversion. And with the free version, there is no way to track the adoption of the\ntool.",[11,303,304,305,308],{},"There are many options for setting up accessibility ",[244,306,307],{},"monitoring",", from\ndedicated accessibility tools to observability solutions extended with the axe\npackage. The best option for GitLab was a Sitespeed setup that the frontend\ndepartment already used to monitor the app’s performance. I extended it\nwith an axe plugin. That gave us additional data, about how specific pages were\ndoing in terms of accessibility over time. Using Sitespeed opens the option of\nintegrating with Grafana dashboards or Slack integrations. I find it to be\na good option for the product managers, engineering managers and other\nroles that coordinate accessibility improvements, rather than engineers only. If\nyour company has done a complete audit and you have results per page URL,\nyou can easily measure the effects of remediation efforts over time with\na monitoring tool like that. But keep in mind that it measures the results\non a page load and misses any violations happening after user interactions.",[15,310,312],{"id":311},"the-human-layer","The human layer",[11,314,315],{},"What all these layers of automations cannot do, is to see if the keyboard flow\nis right, what the experience is like with a screen reader or if the page\nmakes sense as a whole. For that we need a person, to make sure we\nhave the full picture. At GitLab, the human layer worked at three speeds: daily\ncode reviews, one-off accessibility days, and building documentation and\ntraining over time. This level is the one that needs time and knowledge. It also\noccurs late in the process of development. This is why the automated layer is\nimportant, to lift some of that burden.",[11,317,318,319,322],{},"As a maintainer of the GitLab codebase, I saw how much code reviews\ncan speed up the adoption of the tools, but also the awareness about digital\naccessibility. I made sure every time I left feedback, I backed\nit up with a recording from a screen reader, a link to\ndocumentation or ",[23,320,321],{},"WCAG"," criteria and with the explanation, how the\nproblem in the code translates to what people experience and which users are\naffected. I was proud every time someone else mentioned my comments in\nanother review of theirs. The feedback got documented and no longer depended on\nindividual subject matter experts.",[11,324,325],{},"There is a lot of accessibility training out there and it might be hard to\nchoose the right thing for you. In a company with an already excellent\nengineering culture, a basic training won't do much. The introductory\ntraining we provided didn't gain much traction from engineering, though it was\na great hit with the other departments. A custom course with examples\nfrom real testers with disabilities made all the difference. Based on our\nautomations and previous accessibility efforts, I was able to narrow down\ncommon patterns that needed more in-depth knowledge. Thanks to that, our course\nprovider was able to build the curriculum around it.",[11,327,328],{},"The moment that glued all these pieces together was a dedicated\naccessibility day we organised, when team members spent a whole day on\nimproving the accessibility of our product. We had designers, frontend and\nbackend engineers contributing to previously triaged and selected issues. As\na result, not only did our application improve, but so did open source\nprojects we depend on. Our engineers contributed to their codebases, making sure\nthose violations were gone. The 108 fixes from one such event resulted in\nimproved components' patterns, additional documentation or complete component\nrewrites.",[15,330,332],{"id":331},"what-worked-what-didnt-what-id-do-differently","What worked, what didn't, what I'd do differently",[11,334,335,336,338],{},"The layered enforcement with Storybook in ",[23,337,41],{}," paired with the human\naspects led to a clear improvement of the application's accessibility.\nSince then, regressions have been caught early. I also noticed that more\nteams were including accessibility considerations earlier in the process and\nI was asked more often about the feedback before features were built.",[11,340,341],{},"Looking back at the journey my Working Group took, I see that the hard part\nwas staying in the experiment mindset. Narrowing the feature tests felt like\ngiving up the perfect solution. That's why the exploration phase is very\nimportant, both in terms of discovering what is technically possible and which\nsolutions teams will actually adopt.",[11,343,344],{},"If you’re starting from zero, begin by mapping layers of the product, tools and\ntesting frameworks that are already used. This should be a guide to\nexperimenting with different options and checking which solution fits.",[11,346,347],{},"Creating a system like this takes time and team effort, and so does staying\naccessible. One-off audits do not guarantee it, and in an ever-evolving system\nit's nearly impossible to reach the perfect state. But a series of\nimperfect guards and processes results in a sustainable path towards an\naccessible application. The good thing is that a system like that can be\nbuilt over time. Even if you think you are starting from nothing, there's\na high chance you already have a testing framework that can be\nextended to include accessibility checks.",{"title":349,"searchDepth":350,"depth":350,"links":351},"",2,[352,353,354,355,356,357],{"id":17,"depth":350,"text":18},{"id":30,"depth":350,"text":31},{"id":51,"depth":350,"text":52},{"id":82,"depth":350,"text":83},{"id":311,"depth":350,"text":312},{"id":331,"depth":350,"text":332},"2026-10-26","How layers of automations and processes can help making complex application accessible.","md",{},11,true,"\u002Fblog\u002Fsustainable-path-towards-accessibility",{"title":5,"description":359},"blog\u002Fsustainable-path-towards-accessibility","a-b1wZMBSCd2wDuUUrxTRBcPz-kG0yp_ScdSiyy2mHM",1795614328542]