Skip to content

    Frontend System Design

    Accessibility and Compliance

    How WCAG 2.2, laws such as the European Accessibility Act and Section 508, and your own evidence fit together, and how to build an honest check pipeline.

    By Published 12 min read

    • frontend-system-design
    • accessibility
    • compliance
    • wcag
    • testing
    Share

    Standard lessonintermediateFrontend System Design

    Before this: Accessibility Fundamentals and WCAG

    What you'll learn: By the end of this lesson you will be able to separate a standard (WCAG), a law that points to it and the evidence you keep, read WCAG's conformance rules (levels, full pages, complete processes), place the main laws in an engineering context, build a layered check pipeline that is honest about what automation cannot see, and write a defensible accessibility statement. This is education, not legal advice.

    A building has three separate things: a building code (the standard), a permit rule that says which buildings must follow which code (the law), and an inspection record (the evidence). Passing a fire drill does not replace the inspection record, and a record does not replace the code. Web accessibility has the same three layers. WCAG is the code, laws such as the European Accessibility Act decide who must meet it, and evidence (tests, audits, statements) shows that you do.

    The running example is the checkout flow of a grocery marketplace (the front end of the ShopStream marketplace used in this course): cart, address, delivery slot, payment, confirmation.

    It builds on the accessibility fundamentals lesson of module F14 and covers how to prove and keep accessibility, not how to build accessible components.

    The core idea

    1. Standards, laws and evidence are different things. A law names a standard; the standard says what to achieve; evidence says whether you did.
    2. Conformance is about whole pages and whole processes, not about a component or a score from a tool.
    3. Automation finds some problems, people find the rest. A pipeline stacks cheap automated checks, manual checks and user feedback, and records what each one covered.

    Standards, laws, evidence

    Figure 1. From standard to evidence

    From the WCAG standard, through laws that cite it, to the evidence a team keepsLaws and policies to WCAG 2.2 (cites); WCAG 2.2 to Your product (success criteria); Your product to Checks (evaluated by); Checks to Statement, report (feeds); User feedback to Statement, report (feeds)WCAG 2.2: the standardWCAG 2.2the standardLaws and policies: who must meet itLaws andpolicieswho must meet itYour product: pages and flowsYour productpages and flowsChecks: automated and manualChecksautomated andmanualStatement, report: what you can showStatement,reportwhat you can showUser feedback: real barriersUser feedbackreal barrierscitessuccess criteriaevaluated byfeedsfeeds

    How to read this: the law (grey, outside your control) points at the standard, and the standard applies to your product. What you can show a regulator, a buyer or a user is the record on the right, fed by checks and by people. The standard does not produce evidence by itself.

    What WCAG 2.2 says

    W3C published WCAG 2.2 on 5 October 2023 and an update on 12 December 2024, and says it does not deprecate 2.1 or 2.0: content that conforms to 2.2 also conforms to 2.1 and 2.0, and W3C recommends the latest version. The success criteria are at three levels, A, AA and AAA, under four principles: perceivable, operable, understandable and robust. Version 2.2 added nine criteria and removed 4.1.1 Parsing. The nine new ones, with levels:

    Level A Level AA Level AAA
    Consistent Help, Redundant Entry Focus Not Obscured (Minimum), Dragging Movements, Target Size (Minimum), Accessible Authentication (Minimum) Focus Not Obscured (Enhanced), Focus Appearance, Accessible Authentication (Enhanced)

    Two examples for a checkout: Target Size (Minimum) requires pointer targets of at least 24 by 24 CSS pixels unless an exception applies (spacing, an equivalent control, inline text, a user-agent control, or an essential presentation), and Accessible Authentication (Minimum) says a cognitive function test, such as remembering a password, is not required for a step unless an alternative, an assisting mechanism, object recognition or personal content applies.

    The conformance rules that shape engineering

    W3C's conformance requirements matter more than any single criterion:

    • A level is met in full. Conforming at AA means every A and AA criterion is met (or a conforming alternate version exists).
    • Full pages only. Conformance cannot be claimed if part of a page is excluded.
    • Complete processes. If a page is part of a multi-step process such as checkout, every page in the process must conform for any of them to count.
    • Accessibility-supported technologies only, and non-interference: a technology that is not supported must not block access to the rest of the page.
    • AAA is not a policy target. W3C does not recommend requiring AAA for entire sites, because some content cannot meet all of it.

    Illustration 1: the minimal example

    A team claims AA for its checkout. Cart, address and confirmation pass; the delivery-slot page has a date picker that cannot be operated with a keyboard. Under the complete-process rule the checkout does not conform at AA, however good the other pages are, and a claim that "the checkout conforms" would be wrong. The honest claim is narrower: three of five steps conform, one has a known failure, one is not assessed. That is the difference between a score and a statement.

    Laws, in an engineering context

    Laws vary by place, sector and date, change over time and have exceptions. The table below shows how several cite the standard, from the sources named; it is not a complete list and not legal advice. Ask counsel what applies to your product.

    Instrument Who it covers Standard it points to Source read
    European Accessibility Act (Directive 2019/882) Listed products and services, including e-commerce and e-books EN 301 549 is listed as the relevant standard CCPC (Ireland), W3C WAI
    Web Accessibility Directive (2016/2102) Public sector bodies in the EU EN 301 549, which for web content includes WCAG 2.1 Level AA W3C WAI
    US Section 508 Federal agencies' information and communication technology WCAG 2.0 Level A and AA, by reference in the Access Board's standards Access Board
    ADA Title II web rule (US, April 2024) State and local governments' websites and apps WCAG 2.1 Level AA ADA.gov

    Points worth knowing, each from the cited page. The Irish regulator says the Act came into effect on 28 June 2025 and that businesses offering the covered products or services must meet the relevant requirements; it also mentions claimed exemptions, so read the Directive and your national law for them. The ADA.gov page lists compliance dates of 26 April 2027 (population of 50,000 or more) and 26 April 2028 (smaller entities and special district governments) after an April 2026 interim final rule, and five exceptions, such as archived content and unaffiliated third-party content. Different instruments cite different WCAG versions, which is why the usual engineering choice is to target the latest version at level AA: by W3C's compatibility statement, that also meets the earlier versions.

    An accessibility statement tells users how accessible your content is and how to get help. W3C says some situations require one (for example public bodies under the EU directive) and that statements are not technical assessments or declarations of conformity; typical content includes a commitment, the standard applied, a contact, and known limitations.

    Figure 2. How evidence is built

    sequenceDiagram accTitle: How accessibility evidence is built accDescr: The team defines the scope, samples representative pages and complete processes, evaluates them with tools and manual checks, involves users with disabilities, reports findings, fixes them, and publishes an accessibility statement with known limitations. A buyer in a public procurement may ask for an accessibility conformance report. participant T as Team participant E as Evaluators participant U as Users participant B as Buyer or regulator T->>E: scope and sample (pages, complete processes) E->>E: tools plus manual checks U->>E: real-life barriers E->>T: findings report T->>T: fix, retest T->>B: accessibility statement, known limitations B->>T: asks for a conformance report (procurement)

    How to read this: this follows W3C's evaluation method (define scope, explore, sample, evaluate, report) and the Section 508 ACR idea: vendors prepare an accessibility conformance report that government buyers use to assess a product. The report and the statement are claims you make, so they are only as good as the checks behind them.

    A layered check pipeline

    W3C says some accessibility checks cannot be automated and that human judgement is required; Playwright's guide says automated tests detect some common problems and that many can only be found manually; the axe-core project says it finds on average 57% of WCAG issues automatically (it does not say how that was measured) and returns uncertain results as "incomplete" for a person to review. So a pipeline has layers, each cheap where it can be and human where it must be:

    1. Design and tokens: contrast and target-size values decided once.
    2. Components: lint and unit-level checks on the building blocks.
    3. Page and flow scans in CI: an automated engine over key pages and states.
    4. Manual checks: keyboard-only and screen-reader passes on changed critical flows.
    5. Evaluation and feedback: a periodic evaluation of a sampled scope, and a channel for user reports.

    Figure 3. Layers of checks and what each can see

    Layers of accessibility checks from design tokens to user feedbackDesign tokens to Component checks; Component checks to CI scan; CI scan to Manual pass (incomplete results); Manual pass to Evaluation; User reports to Evaluation (informs)Design tokens: contrast, target sizeDesign tokenscontrast, targetsizeComponent checks: lint, unitComponentcheckslint, unitCI scan: key pages and statesCI scankey pages andstatesManual pass: keyboard, screen readerManual passkeyboard, screenreaderEvaluation: sampled scopeEvaluationsampled scopeUser reports: real barriersUser reportsreal barriersincomplete resultsinforms

    How to read this: work moves left to right from cheap and frequent to human and periodic. The green boxes are the human layers; the accent box is the automated one that runs on every change but sees only what the page shows when it runs.

    Illustration 2: the realistic example

    A CI scan of the checkout's shipping step. It follows the pattern in Playwright's accessibility guide: navigate, bring the UI into the state you want to test, wait for it, then analyse. The axe tag wcag22aa is listed in the axe-core documentation as WCAG 2.2 Level AA. This code was written from those pages and was not run for this lesson.

    import { test, expect } from "@playwright/test";
    import AxeBuilder from "@axe-core/playwright";
    
    const TAGS = ["wcag2a", "wcag2aa", "wcag21a", "wcag21aa", "wcag22aa"];
    
    test("shipping step, empty state", async ({ page }) => {
      await page.goto("/checkout/shipping");
      const results = await new AxeBuilder({ page }).withTags(TAGS).analyze();
      expect(results.violations).toEqual([]);
    });
    
    test("shipping step, validation error state", async ({ page }) => {
      await page.goto("/checkout/shipping");
      await page.getByRole("button", { name: "Continue" }).click();
      await expect(page.getByRole("alert")).toBeVisible();
      const results = await new AxeBuilder({ page }).withTags(TAGS).analyze();
      expect(results.violations).toEqual([]);
    });

    Two choices to notice. The error state gets its own test, because the Playwright guide says to bring the UI into the state you want before calling analyze(). And an empty violations array means "no detectable violations in what was scanned", not "conforms to WCAG".

    Illustration 3: a failure

    The scan is green on every release, and the footer says "WCAG 2.2 AA compliant". A user with a screen magnifier reports that on the payment step the sticky "free delivery" banner covers the focused field. The scan only loaded the page and never tabbed through it, so it could not see focus order against a sticky element. WCAG 2.2 criterion 2.4.11, Focus Not Obscured (Minimum, level AA), says a focused component must not be entirely hidden by author-created content. W3C's "easy checks" page says a page can pass quick checks and still have significant barriers. The failure is not the tool; it is the claim that went further than the evidence.

    Trade-offs

    Choice Gain Cost
    Target WCAG 2.2 AA Meets 2.1 and 2.0 AA too; current A few new criteria to learn and test
    Target AAA everywhere Highest bar W3C does not recommend it as a site-wide policy
    Automated scan on every PR Fast, cheap, stops regressions Sees only detectable issues in scanned states
    Manual pass on changed flows Finds what tools cannot Slower; needs skill
    Periodic external evaluation Independent view Cost, and it ages
    Detailed accessibility statement Honest and useful to users Must be kept current

    Build it

    This lesson has no lab: a meaningful accessibility test needs a real browser and assistive technology, and browser automation is not part of this course's local tooling. The Playwright snippet above is written from the cited documentation and was not run; no tool output is shown.

    In practice: the marketplace checkout

    NOTE

    This is a realistic scenario, not a case history. It is a composite built from common production patterns. It describes no specific company or product, and every number in it is an illustrative assumption.

    The situation

    The marketplace sells to customers in several EU countries. Legal asks engineering whether the checkout is "compliant". Today there is a nightly scan of the home page and a "WCAG AA compliant" line in the footer, written by marketing two years ago.

    Starting architecture

    Figure 4. A scan of one page and a claim about all

    Starting architecture: a nightly scan of the home page and a compliance claimNightly scan to Footer claim (green); Footer claim to Checkout flow (implies); Checkout flow to Customers (barriers)Nightly scan: home page onlyNightly scanhome page onlyFooter claim: AA compliantFooter claimAA compliantCheckout flow: five steps, unscannedCheckout flowfive steps,unscannedCustomers: keyboard, magnifierCustomerskeyboard,magnifiergreenimpliesbarriers

    How to read this: the warning boxes mark the gap. A scan of one page supports a claim about one page, but the claim is read as covering the checkout, where customers actually meet barriers.

    Options considered

    Option What it fixes What it costs Risk
    Remove the footer claim and say nothing No overclaim No statement to users Looks evasive
    Add more scans only Wider automated coverage CI time Still blind to keyboard and focus issues
    Layered pipeline plus an honest statement Evidence matches the claim Process work and ownership Needs sustained effort

    The decision

    Field Decision record
    Context A broad compliance claim rests on a one-page scan; legal needs a defensible answer.
    Decision Target WCAG 2.2 AA for the five checkout steps as one complete process. Scan every step and each error state in CI, run a keyboard and screen-reader pass on changed steps, and replace the footer line with an accessibility statement: scope, standard, known limitations, contact, last evaluation date. Legal decides what law applies.
    Consequences, good The claim matches the evidence; regressions are caught per change.
    Consequences, bad More CI time; manual passes need a named owner.
    Revisit when Laws or the WCAG version targeted change, or the flow is redesigned.

    Rollout and verification

    1. Define scope: the five steps are one complete process; list the states of each (empty, error, loading).
    2. Add the scans per step and state; record what they cannot cover.
    3. Run a first manual evaluation with keyboard only and a screen reader, and log findings with owners.
    4. Publish the statement with known limitations, a contact and a date.
    5. Re-run after each change to a checkout step; schedule a periodic evaluation.

    The 2 a.m. failure

    A promotion adds a sticky banner through a tag manager. Overnight, keyboard users report that the focused "Pay" button is hidden behind it, and the green scan does not notice.

    First three checks: (1) tab to the control with the banner showing; (2) check whether the banner came from outside the repository; (3) look at which states the scan visits. Mitigation: remove the banner. Follow-up: a keyboard test of the payment step with banners on, and a rule that third-party content is reviewed against the same criteria.

    Architect's notes

    • State the claim narrowly: which standard and version, which flows, which date, which known issues.
    • Treat a complete process as the unit of conformance, not a page.
    • Own the backlog: every finding has an owner and a date.
    • Put contrast, target size and focus rules in the design system, so they are decided once.
    • Let counsel read the laws. Engineering supplies the evidence.

    Common mistakes

    • A green scan taken as proof of conformance.
    • Scanning only the initial state of a page.
    • Claiming AAA or "fully compliant" without the evidence.
    • Leaving third-party widgets out of scope.
    • Treating the law and the standard as the same thing.
    • No contact route for users who hit a barrier.
    • One-off audits that age while the product changes, and findings with no owner.

    Key takeaways

    • WCAG is the standard, laws say who must meet it, evidence shows you did.
    • WCAG 2.2 conformance is by level, for full pages and complete processes.
    • Targeting the latest WCAG at AA also meets the earlier versions, per W3C.
    • Automation finds some problems; manual checks and user feedback find the rest.
    • An empty violations array means no detectable violations in what was scanned.
    • A defensible statement names scope, standard, known limitations, a contact and a date.

    Practice exercises

    Exercise 1: Starter (30 min). List the five checkout steps and, for each, the states a scan must visit (empty, error, loading) and one thing no scan can see.

    Exercise 2: Intermediate (2 hours). Write an accessibility statement for the checkout: scope, standard and version, known limitations, contact, evaluation date.

    Exercise 3: Advanced (half day). Design the pipeline for a monorepo with a design system: which checks run per component, per page, per release, and what the release gate is when a manual finding is open.

    In this course:

    Official documentation

    Ask about this article

    Get answers grounded in this post. AI-generated — based on this article, and may be imperfect.

    Scaled AI Weekly

    Enjoyed this? Get more like it every Monday.

    Real architecture decisions, LLMOps patterns that survive production, and engineering leadership advice — from 12+ years of building at enterprise scale. Free. No spam. Unsubscribe anytime.

    Get new articles by email

    Free. We email a confirmation link first, and you can unsubscribe from any email.

    Join engineers building production AI systems

    Comments