
# Publish your accessibility statement

If your organisation is subject to the digital-accessibility obligation, set the four keys of `LEGAL_ACCESSIBILITE`: the application then publishes its statement at `/declaration-accessibilite`, linked from the footer, the drawer and the legal menu of the staff space.

## Fill in the statement

Article 47 of law no. 2005-102 requires a statement of public bodies and of companies above a turnover threshold. **The obligation falls on the organisation deploying the application**, not on the project: only it knows how far its instance was audited, when, and where to receive a report. The page shows what the deployment configures and says "not provided" for the rest.

| `LEGAL_ACCESSIBILITE` key | Content |
| --- | --- |
| `etat` | `totale`, `partielle` or `non`; any other value reads as not provided |
| `date-audit` | the date of the audit the state rests on |
| `contenus` | the non-accessible content, and why; a line break makes a paragraph |
| `signalement` | where to report a defect; empty, the legal notices' contact address (key `contact` of `LEGAL_MENTIONS`) |

## The reference and the scope

The reference is **RGAA 4.1**, which transposes the A and AA criteria of WCAG 2.1. Three scopes:

| Scope | Audience | Read on |
| --- | --- | --- |
| Staff space (4 screens) | ~150 people outside the organisation, including **minors**, with no known equipment | a phone, from a link received by e-mail |
| Public pages (`/login`, legal notices, privacy, terms, accessibility statement) | anyone arriving without going through the rest | any device |
| Administration (about fifty screens) | the organising team | a desktop computer |

The staff space is the only truly general-public scope: it is handled first and played by the tests on a phone viewport.

## What was audited

A static criterion-by-criterion audit covered every template, completed by four tooled measures (the accessibility rules of `angular-eslint`, a contrast ratio on the colours written by this repository, a structural sweep of the templates, a probe of `<mat-icon>`'s behaviour). All its findings were fixed, and each is held by one of the checks below:

| RGAA theme | Gap found | Fix |
| --- | --- | --- |
| 1 — Images | icon `aria-label`s never rendered (`MatIcon` hides them) | `aria-hidden="false"` hard-set |
| 3 — Colours | brand bar at 3.24:1; deployment accent with no cap in light mode | `#007eb2` band under white text (4.54:1), the same in light and dark; OKLCH lightness bounded in both schemes (`branding.spec.ts`) |
| 5 — Tables | `role="grid"` without keyboard, tables without `caption`, no `scope` | real grid or native table; `caption`; `scope` |
| 7 — Scripts | drag and drop with no keyboard equivalent; unreachable pivot cell; single-key shortcuts | "Move … to" dialog; roving tabindex; shortcut switch |
| 7.5 — Status messages | about thirty inert errors and verdicts | `app-status-message` |
| 9 — Structure | screens with no `<h1>`, `mat-card-title` non-headings | one `<h1>` per screen |
| 12 — Navigation | staff space with no skip link or focus restoration | skip link and refocused `<main>` in both shells |
| 13 — Consultation | unannounced new windows; untagged PDFs; no statement | `NewWindowLink` directive; PDF title and language; `/declaration-accessibilite` page |

Compliant with no fix: **forms** (theme 11: one `mat-label` per field, errors in `mat-error`, `autocomplete` on the user's own data), the absence of **frames** and **multimedia**, **mandatory elements** (`<html lang>` rewritten with the catalogue, a `<title>` per route), **presentation** (no `user-scalable=no`, a single `outline: none` offset by a `:focus-visible`) and **time limits** (none imposed).

## What keeps the gaps from coming back

| Check | Where | What it refuses |
| --- | --- | --- |
| 12 a11y rules of `angular-eslint` | `npm run lint` | the eight regression families the template linter sees (click without keyboard, positive `tabindex`, `autofocus`...) |
| `icon-labels-check` | `frontend` job | an information-bearing icon hidden, or nameless |
| `headings-check` | `frontend` job | a routed screen without exactly one `<h1>`, a `<mat-card-title>` element |
| `status-messages-check` | `frontend` job | an error or verdict in an element with no `role` |
| `table-headers-check` | `frontend` job | a `<th>` without `scope` |
| `new-window-check` | `frontend` job | a `target="_blank"` link that does not announce it |
| `colour-tokens-check` | `frontend` job | a colour written anywhere but the token file, a colour without its light/dark pair, a text/background pair of the tokens under 4.5:1 in either scheme (the band included) |
| `e2e/accessibilite.spec.ts` | `e2e` job of `tests.yml` | any *serious* or *critical* axe-core finding outside the baseline, on the representative screens (the four of the staff space replayed on a phone) |

The axe spec measures what no linter sees: contrast once the themes are applied, regions, accessible names computed at run time. It starts from a **frozen baseline** per screen (`LIGNE_DE_BASE`) that can only shrink: an axe-core rule that no longer fires fails the spec until it is removed from the list.

## What remains open

- **No journey has been played under a screen reader** (NVDA, JAWS, VoiceOver): reading order and verbosity are covered neither by the static audit nor by axe. A compliance statement calls for a human audit on the full grid.
- **PDFs** carry a title and a language but **are not tagged**: OpenPDF builds no structure on what `Document.add` writes, and a PDF declared tagged over an empty tree reads as a blank page, worse than an untagged PDF read as a text stream. The staff space is the accessible version of the same schedule (criterion 13.3, "if necessary").
- **Under an identity provider (OIDC), the end of the session is not announced**: its length is the provider's, which the application does not know. A local session (the configuration account, the application's accounts) is announced **two minutes before it ends** by an alert dialog that extends it in one gesture; the remaining time is read from the server by a route that does not extend it. In both cases the end leads to `/login` with the address left, tab and filters included, and signing in again brings you back there; the drafts of the staff record, the stand record, the consigne and the manual adjustment are still offered when the form is reopened; the other, shorter forms (bulk edits, the guided creation of a stand, weather settings, a series of timeslots, locks) have none.
- **Colours are measured in pairs, not in place**: `colour-tokens-check` computes the contrast of the text/background pairs the token file declares, in both schemes; a page that sets a text on a ground other than its pair's is measured by axe alone, once the theme is applied.
