- {{ copy().pageTitle }}
+
+
+ Accessibility statement
-
- {{ copy().introTitle }}
+
+ About this statement
-
- {{ copy().introBody }}
+
+ The APF Portal is committed to making its digital services accessible, in line with WCAG 2.2
+ level AA and the French RGAA 4.1 reference, with targeted AAA criteria on the items most
+ impactful to the association's user base (see ADR-0016).
@@ -16,11 +28,20 @@
class="mt-8 rounded-md border-l-4 border-amber-400 bg-amber-50 p-4 dark:border-amber-500 dark:bg-amber-950/40"
aria-labelledby="status-heading"
>
-
- {{ copy().panelNoticeTitle }}
+
+ Status of this document
-
- {{ copy().panelNoticeBody }}
+
+ This statement is awaiting review and sign-off by the APF France handicap user panel. The
+ final version will integrate the RGAA audit grid, the list of any identified gaps, the
+ remediation plan, and the contact details for reporting accessibility issues.
diff --git a/apps/portal-shell/src/app/pages/accessibility/accessibility.spec.ts b/apps/portal-shell/src/app/pages/accessibility/accessibility.spec.ts
index c958411..f2c4549 100644
--- a/apps/portal-shell/src/app/pages/accessibility/accessibility.spec.ts
+++ b/apps/portal-shell/src/app/pages/accessibility/accessibility.spec.ts
@@ -1,40 +1,28 @@
import { TestBed } from '@angular/core/testing';
-import { ActivatedRoute } from '@angular/router';
-import { of } from 'rxjs';
import { AccessibilityStatement } from './accessibility';
-function configureWithLang(lang: 'fr' | 'en' | undefined) {
- return TestBed.configureTestingModule({
- imports: [AccessibilityStatement],
- providers: [{ provide: ActivatedRoute, useValue: { data: of({ lang }) } }],
- }).compileComponents();
-}
-
describe('AccessibilityStatement', () => {
- it('renders the French copy on /accessibilite (lang: fr)', async () => {
- await configureWithLang('fr');
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({ imports: [AccessibilityStatement] }).compileComponents();
+ });
+
+ it('renders the heading + intro + status sections', async () => {
const fixture = TestBed.createComponent(AccessibilityStatement);
await fixture.whenStable();
const root = fixture.nativeElement as HTMLElement;
- expect(root.querySelector('h1')?.textContent).toContain('Déclaration d’accessibilité');
- expect(root.querySelector('article')?.getAttribute('lang')).toBe('fr');
+ expect(root.querySelector('h1')?.textContent?.trim()).toBe('Accessibility statement');
+ expect(root.querySelector('section[aria-labelledby="intro-heading"]')).not.toBeNull();
+ expect(root.querySelector('section[aria-labelledby="status-heading"]')).not.toBeNull();
});
- it('renders the English copy on /accessibility (lang: en)', async () => {
- await configureWithLang('en');
+ it('exposes the panel-review status with an amber callout structure', async () => {
const fixture = TestBed.createComponent(AccessibilityStatement);
await fixture.whenStable();
const root = fixture.nativeElement as HTMLElement;
- expect(root.querySelector('h1')?.textContent).toContain('Accessibility statement');
- expect(root.querySelector('article')?.getAttribute('lang')).toBe('en');
- });
-
- it('falls back to English when the route omits the lang', async () => {
- await configureWithLang(undefined);
- const fixture = TestBed.createComponent(AccessibilityStatement);
- await fixture.whenStable();
- expect((fixture.nativeElement as HTMLElement).querySelector('h1')?.textContent).toContain(
- 'Accessibility statement',
+ const status = root.querySelector('section[aria-labelledby="status-heading"]');
+ expect(status?.querySelector('#status-heading')?.textContent).toContain(
+ 'Status of this document',
);
+ expect(status?.textContent).toContain('APF France handicap user panel');
});
});
diff --git a/apps/portal-shell/src/app/pages/accessibility/accessibility.ts b/apps/portal-shell/src/app/pages/accessibility/accessibility.ts
index a7ba1fa..9d5895a 100644
--- a/apps/portal-shell/src/app/pages/accessibility/accessibility.ts
+++ b/apps/portal-shell/src/app/pages/accessibility/accessibility.ts
@@ -1,77 +1,22 @@
-import { ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';
-import { ActivatedRoute } from '@angular/router';
-import { toSignal } from '@angular/core/rxjs-interop';
-import { map } from 'rxjs';
-
-type Lang = 'fr' | 'en';
-
-interface AccessibilityCopy {
- htmlLang: Lang;
- pageTitle: string;
- introTitle: string;
- introBody: string;
- panelNoticeTitle: string;
- panelNoticeBody: string;
-}
-
-const COPY: Record = {
- fr: {
- htmlLang: 'fr',
- pageTitle: 'Déclaration d’accessibilité',
- introTitle: 'À propos de cette déclaration',
- introBody:
- 'Le portail APF s’engage à rendre ses services numériques accessibles, conformément ' +
- 'au RGAA 4.1 et à la norme WCAG 2.2 niveau AA, avec des critères AAA ciblés sur les ' +
- 'points à fort impact pour les usagers de l’association (voir ADR-0016).',
- panelNoticeTitle: 'Statut du présent document',
- panelNoticeBody:
- 'Cette déclaration est en attente de revue et de validation par le panel d’usagers ' +
- 'd’APF France handicap. La version définitive intégrera la grille d’audit RGAA, le ' +
- 'recensement des écarts éventuels, le plan de mise en conformité, et les coordonnées ' +
- 'de signalement.',
- },
- en: {
- htmlLang: 'en',
- pageTitle: 'Accessibility statement',
- introTitle: 'About this statement',
- introBody:
- 'The APF Portal is committed to making its digital services accessible, in line with ' +
- 'WCAG 2.2 level AA and the French RGAA 4.1 reference, with targeted AAA criteria on ' +
- 'the items most impactful to the association’s user base (see ADR-0016).',
- panelNoticeTitle: 'Status of this document',
- panelNoticeBody:
- 'This statement is awaiting review and sign-off by the APF France handicap user ' +
- 'panel. The final version will integrate the RGAA audit grid, the list of any ' +
- 'identified gaps, the remediation plan, and the contact details for reporting ' +
- 'accessibility issues.',
- },
-};
+import { ChangeDetectionStrategy, Component } from '@angular/core';
/**
- * Accessibility statement, mounted at both `/accessibility` (en) and
- * `/accessibilite` (fr) per ADR-0016. Same component, content
- * selected from a route data property.
+ * Accessibility statement, mounted at `/accessibility` per ADR-0019.
+ *
+ * Content is marked for i18n; the production build emits one bundle
+ * per locale with the right text inlined. The previous twin route
+ * `/accessibilite` survives as a redirect (in `app.routes.ts`) so
+ * existing bookmarks keep working.
*
* v1 ships placeholder copy explicitly framed as "awaiting APF panel
* review" — content is required to exist (RGAA + ADR-0016) but the
* substance of the statement (audit grid, gaps list, remediation
- * plan) is owned by the accessibility review and lands separately.
+ * plan, reporting channel) is owned by the accessibility review and
+ * lands separately.
*/
@Component({
selector: 'app-accessibility-statement',
templateUrl: './accessibility.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
-export class AccessibilityStatement {
- private readonly route = inject(ActivatedRoute);
-
- protected readonly lang = toSignal(
- this.route.data.pipe(map((data): Lang => (data['lang'] as Lang | undefined) ?? 'en')),
- // `as Lang` rather than `as const` so the toSignal overload
- // picks `Signal` instead of `Signal` and downstream
- // consumers see `Signal` cleanly.
- { initialValue: 'en' as Lang },
- );
-
- protected readonly copy = computed(() => COPY[this.lang()]);
-}
+export class AccessibilityStatement {}
diff --git a/apps/portal-shell/src/locale/messages.fr.xlf b/apps/portal-shell/src/locale/messages.fr.xlf
index e3c3856..4bbccfd 100644
--- a/apps/portal-shell/src/locale/messages.fr.xlf
+++ b/apps/portal-shell/src/locale/messages.fr.xlf
@@ -26,6 +26,10 @@
Legal
Mentions légales
+
+ Accessibility statement
+ Déclaration d’accessibilité
+
© APF France handicap
© APF France handicap
@@ -163,6 +167,28 @@
Portail APF
+
+
+ The APF Portal is committed to making its digital services accessible, in line with WCAG 2.2 level AA and the French RGAA 4.1 reference, with targeted AAA criteria on the items most impactful to the association's user base (see ADR-0016).
+ Le portail APF s’engage à rendre ses services numériques accessibles, conformément au RGAA 4.1 et à la norme WCAG 2.2 niveau AA, avec des critères AAA ciblés sur les points à fort impact pour les usagers de l’association (voir ADR-0016).
+
+
+ About this statement
+ À propos de cette déclaration
+
+
+ This statement is awaiting review and sign-off by the APF France handicap user panel. The final version will integrate the RGAA audit grid, the list of any identified gaps, the remediation plan, and the contact details for reporting accessibility issues.
+ Cette déclaration est en attente de revue et de validation par le panel d’usagers d’APF France handicap. La version définitive intégrera la grille d’audit RGAA, le recensement des écarts éventuels, le plan de mise en conformité, et les coordonnées de signalement.
+
+
+ Status of this document
+ Statut du présent document
+
+
+ Accessibility statement
+ Déclaration d’accessibilité
+
+
This is the placeholder home page for the APF Portal. Real content lands once the comms team and the accessibility review panel sign off on the copy.
+ Accessibility statement
- {{ copy().introTitle }}
+
+ About this statement
-
- {{ copy().introBody }} +
+ The APF Portal is committed to making its digital services accessible, in line with WCAG 2.2 + level AA and the French RGAA 4.1 reference, with targeted AAA criteria on the items most + impactful to the association's user base (see ADR-0016).
- {{ copy().panelNoticeTitle }}
+
+ Status of this document
-
- {{ copy().panelNoticeBody }} +
+ This statement is awaiting review and sign-off by the APF France handicap user panel. The + final version will integrate the RGAA audit grid, the list of any identified gaps, the + remediation plan, and the contact details for reporting accessibility issues.