Fix accessibility found in the audit
- Text contrast: teal text and button fills use #0f7183 (5.7:1), section accents darkened to pass on white, solid CTA buttons instead of the gradient, footer and subnav text raised to white/65, event and region colours kept on borders and swatches with ink text - Hidden carousel slides and collapsed past events are inert - Admin list rows carry a real link for keyboard use - Mobile menu is a modal dialog: focus, Escape, inert background, above the header - Skip to content link, one focus-visible ring, reduced-motion rule, focus rings on the calendar inputs - Region headings hold their button instead of sitting inside it - font-700 style classes (not Tailwind v4 utilities) replaced with named weights, and the 700/800 font files loaded - Migration 038: alt text for blog covers and schedule graphics; event logos next to their title are decorative - Drop the Church Center script from index.html; Giving loads it itself Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5274e09571
commit
185f9831e2
61 changed files with 310 additions and 207 deletions
|
|
@ -452,6 +452,13 @@ const blocksChild = {
|
|||
help: "Optional, in the fold-out: a map of the site, a slide, a poster",
|
||||
when: SCHEDULE_ENTRY,
|
||||
},
|
||||
{
|
||||
path: "media_alt",
|
||||
label: "Graphic description",
|
||||
full: true,
|
||||
help: "For screen readers: what the graphic shows, eg. a map of the camp. Default: skipped as decoration.",
|
||||
when: SCHEDULE_ENTRY,
|
||||
},
|
||||
{
|
||||
path: "map",
|
||||
label: "Map",
|
||||
|
|
@ -1496,6 +1503,12 @@ const blogPosts = {
|
|||
help: "A sentence or two for the card. Default: the body's first paragraph.",
|
||||
},
|
||||
{ path: "cover_image", label: "Cover image", widget: "image", resolve: blogImage, full: true },
|
||||
{
|
||||
path: "cover_alt",
|
||||
label: "Cover description",
|
||||
full: true,
|
||||
help: "For screen readers: what the cover shows. Default: skipped as decoration.",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ export type BlogPostRecord = {
|
|||
title: string
|
||||
excerpt?: string | null
|
||||
cover_image?: string | null
|
||||
cover_alt?: string | null
|
||||
published_on?: string | null
|
||||
tags: string[]
|
||||
authors: BlogAuthor[]
|
||||
|
|
|
|||
|
|
@ -56,6 +56,8 @@ export type ContentBlockItem = {
|
|||
location?: string | null
|
||||
description?: string | null
|
||||
media?: string | null
|
||||
/** The graphic's alt text; blank means decorative. */
|
||||
media_alt?: string | null
|
||||
map?: string | null
|
||||
person?: { id: string; name: string; photo?: string | null; tagline?: string | null } | null
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue