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:
Zaldimmar 2026-09-28 22:07:56 -05:00
parent 5274e09571
commit 185f9831e2
61 changed files with 310 additions and 207 deletions

View file

@ -206,6 +206,7 @@ const blocksChild = (ownerKind) => ({
text("person_id"),
text("description"),
text("media"),
text("media_alt"),
text("map"),
],
},
@ -840,6 +841,7 @@ const blogPosts = {
text("title", { required: true }),
text("excerpt"),
text("cover_image"),
text("cover_alt"),
date("published_on"),
text("tags"),
text("guest_author"),

View file

@ -0,0 +1,13 @@
-- ═══════════════════════════════════════════════════════════════
-- 038 ALT TEXT FOR BLOG COVERS AND SCHEDULE GRAPHICS
--
-- Both images can carry information (a flyer, a site map, a cover
-- photo that sets the scene), so each gets its own description for
-- screen readers. Blank means decorative: the image is skipped.
--
-- blog_posts.cover_alt the cover image's description
-- content_block_items.media_alt a schedule entry graphic's
-- ═══════════════════════════════════════════════════════════════
ALTER TABLE blog_posts ADD COLUMN cover_alt TEXT;
ALTER TABLE content_block_items ADD COLUMN media_alt TEXT;

View file

@ -103,6 +103,7 @@ blog.get("/blog/:id", (c) => {
title: row.title,
excerpt: row.excerpt,
cover_image: row.cover_image,
cover_alt: row.cover_alt,
published_on: row.published_on,
tags: splitTags(row.tags),
authors,

View file

@ -99,7 +99,7 @@ export function loadBlocks(db, ownerKind, ids, slot = "body") {
const itemRows = db
.prepare(
`SELECT i.block_id, i.text, i.detail, i.url,
i.day, i.time, i.location, i.description, i.media, i.map,
i.day, i.time, i.location, i.description, i.media, i.media_alt, i.map,
p.id AS person_id, p.display_name AS person_name,
p.photo AS person_photo, p.tagline AS person_tagline
FROM content_block_items i
@ -122,6 +122,7 @@ export function loadBlocks(db, ownerKind, ids, slot = "body") {
location: row.location,
description: row.description,
media: row.media,
media_alt: row.media_alt,
map: row.map,
person: row.person_id
? {