Design-System Accessibility Remediation in Angular
Six product teams. 412 accessibility tickets. One component library.
- Client
- B2B payments platform (anonymised)
- Scope
- Shared Angular component library + 6 applications built on it
- Standard
- WCAG 2.2 AA, VPAT 2.5 conformance report
- Timeline
- 10 weeks — 2 audit, 6 remediation, 2 validation
About this case study: it reflects how we run engagements of this kind. The client is anonymised and the figures are illustrative until clients approve publication.
The challenge
A B2B payments platform sold to banks and large corporates ran six Angular applications — admin, treasury, onboarding, reporting and two customer portals — on a shared internal component library. Enterprise procurement started asking for an Accessibility Conformance Report (ACR), and the deals stalled without one. An internal scan had produced 412 tickets across six Jira projects. Teams were fixing the same bug six times, six different ways, mostly by sprinkling aria-label attributes until the scanner went quiet.
The approach
We stopped the app-by-app fixing and deduplicated the backlog to root causes first. 412 tickets collapsed into 23 defects, and 19 of them lived in 11 shared components. So we remediated the library, not the apps: fix once, ship a minor version, let six apps inherit it. Then we made accessibility part of each component's API, so the inaccessible version no longer compiles.
Deduplicate first
412 open tickets clustered by DOM signature and component, then traced to source — 23 root causes in total.
Component audit
Every library component tested in every state in Storybook: keyboard, screen reader, 400% zoom, forced colours and reduced motion.
Journey audit
Key tasks in each app — approve a payment, onboard a user, export a report — with NVDA, JAWS and VoiceOver to catch what components can't.
What we found
| # | Issue | WCAG SC | Severity | Layer |
|---|---|---|---|---|
| 1 | Hand-rolled modal: no focus trap, focus never returned, background still readable | 2.4.3, 1.3.1 | Critical | Library |
| 2 | Data grid built from <div>s — sort state invisible to assistive tech | 1.3.1, 4.1.2 | Critical | Library |
| 3 | Silent route changes: page title never updated, focus stayed on the clicked link | 2.4.2, 2.4.3 | Critical | App shell |
| 4 | 140+ icon-only buttons with no accessible name | 4.1.2 | High | Library API |
| 5 | Toasts not announced, and auto-dismissed after 3 seconds | 4.1.3, 2.2.1 | High | Library |
| 6 | Focus indicator removed in a Material theme override | 2.4.7 | High | Tokens |
| 7 | Secondary and placeholder text tokens at 3.4:1 | 1.4.3 | High | Tokens |
| 8 | Date picker operable by mouse only | 2.1.1 | High | Library |
| 9 | Charts with no text alternative or data-table view | 1.1.1 | Medium | App |
Key insight: 412 tickets were really 23 bugs — and 19 of them lived in 11 shared components. Fixing those once in the library fixed them in all six apps, instead of six teams fixing them six different ways.
How we fixed it
Dialogs on the CDK, not by hand
The hand-rolled modal was replaced with Angular CDK Dialog, which traps focus, restores it to the trigger on close and marks the background inert. The library's own dialog API stayed the same, so no app code had to change.
confirm-dialog.service.ts const ref = this.dialog.open(ConfirmDialog, { ariaLabelledBy: 'confirm-dialog-title', autoFocus: 'first-tabbable', restoreFocus: true, data: { payment }, });Route changes users can hear
A custom TitleStrategy gives every route a unique page title and announces it through the CDK LiveAnnouncer, so screen-reader users know a navigation happened, and the browser tab and history show where they are.
app-title.strategy.ts @Injectable({ providedIn: 'root' }) export class AppTitleStrategy extends TitleStrategy { private readonly title = inject(Title); private readonly announcer = inject(LiveAnnouncer); override updateTitle(snapshot: RouterStateSnapshot): void { const page = this.buildTitle(snapshot); if (!page) return; this.title.setTitle(page + ' · Payments'); this.announcer.announce(page, 'polite'); } } // app.config.ts // { provide: TitleStrategy, useClass: AppTitleStrategy }Accessibility as part of the API
Instead of documenting “remember to add an aria-label”, the icon button now requires a label. Leave it out and the app doesn't compile — 140 missing names were found by the compiler in an afternoon.
icon-button.component.ts @Component({ selector: 'ds-icon-button', template: ` <button type="button" [attr.aria-label]="label()"> <ds-icon [name]="icon()" aria-hidden="true" /> </button> `, }) export class IconButton { readonly icon = input.required<string>(); readonly label = input.required<string>(); // no label, no build }A data grid with real table semantics
The <div> grid was rebuilt on a native <table> with scoped headers. Sorting is a real button inside the header, and aria-sort tells assistive tech which column is sorted and in which direction.
data-grid.component.html <th scope="col" [attr.aria-sort]="sortState('amount')"> <button type="button" (click)="sortBy('amount')">Amount</button> </th>Notifications that wait for the user
Toasts are now announced through the LiveAnnouncer — politely for confirmations, assertively for errors. Errors stay until dismissed, and auto-dismiss pauses on hover and focus.
Tokens fixed once, inherited everywhere
The focus ring and the text colour tokens were corrected in the theme. All six apps picked up a visible 3:1 focus indicator and AA text contrast from a single version bump.
Keeping it fixed
- Storybook + axe test-runner on every component and every state — a new violation fails the library's build.
- @angular-eslint template accessibility rules switched from warnings to errors in all six apps.
- Playwright + axe smoke tests on each app's critical journeys, and the ACR updated with every library minor release.
Results
| Metric | Before | After |
|---|---|---|
| Open accessibility tickets | 412 | 9 |
| Apps fixed by one library release | — | 6 of 6 |
| axe critical and serious violations (all apps) | 1,180 | 0 |
| WCAG 2.2 AA conformance report | None | Published |
| Regressions caught in CI (first quarter) | — | 14 |
One library release fixed the shared defects across all six applications. Open accessibility tickets fell from 412 to 9, the platform published a WCAG 2.2 AA conformance report, and the stalled enterprise deals moved forward. The CI gates caught 14 regressions in the first quarter — before any of them shipped.
Takeaways
- Deduplicate before you remediate. 412 tickets were 23 bugs.
- Fix the library, not the symptoms — every app inherits the fix.
- Make the accessible path the only path that compiles.
- A conformance report is a sales asset. Treat accessibility as a product feature, not a compliance chore.
Stack
- Angular 18
- Angular CDK
- TypeScript
- Storybook
- axe-core
- @angular-eslint
- Playwright
- VPAT / ACR
Facing something similar?
Twenty minutes is usually enough to know whether we can help.