Commit ef04e27
feat(site): add accessibility foundations (#2)
## Summary
- Add skip navigation link, visually-hidden `<h1>`, and ARIA attributes
(`role="application"`, `aria-label`) on the map container
- Add `.sr-only` utility, `.skip-link` styles, `:focus-visible`
outlines, and `prefers-reduced-motion` media query
- Improve BRGM link text for screen readers and add new-tab warnings on
legal pages
## Changes
| File | What |
|------|------|
| `site/index.html` | Skip link, sr-only `<h1>`, map ARIA attributes |
| `site/css/style.css` | `.sr-only`, `.skip-link`, `:focus-visible`,
`prefers-reduced-motion` |
| `site/js/detail-builders.js` | BRGM link: descriptive text + sr-only
new-tab hint + `aria-hidden` on icon |
| `site/js/legal.js` | sr-only new-tab notice on each legal page |
## Review notes
- `helpers.js` `terrilLinks`: planned `aria-label` on `<span>` was
dropped during Karpathy review — `aria-label` on generic elements has no
effect for screen readers
- `meta description` conflict with upstream resolved: kept upstream's
richer OG/Schema.org metadata
## Test plan
- [ ] Tab through the page — skip link appears on first Tab, focus rings
visible on all interactive elements
- [ ] VoiceOver (Cmd+F5) — verify h1, map label, and BRGM link announced
correctly
- [ ] Enable "Reduce motion" in system settings — no smooth animations
- [ ] Inspect with DevTools Accessibility panel — no missing
labels/roles
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c2366a6 commit ef04e27
4 files changed
Lines changed: 51 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
16 | 60 | | |
17 | 61 | | |
18 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | | - | |
| 74 | + | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
| 392 | + | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
0 commit comments