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

@ -51,7 +51,7 @@ const FALLBACK_COLOR = "#4a6b72";
function RowButton({ as: As = "button", color, children, ...rest }: any) {
return (
<As
className="inline-flex shrink-0 items-center gap-2 whitespace-nowrap py-2 px-4 rounded-xl font-700 text-sm transition-transform duration-200 hover:scale-105"
className="inline-flex shrink-0 items-center gap-2 whitespace-nowrap py-2 px-4 rounded-xl font-bold text-sm transition-transform duration-200 hover:scale-105"
style={{ border: `1px solid ${color}`, color }}
{...rest}
>
@ -86,7 +86,7 @@ function OrgMark({ org, color }) {
return (
<span
className="h-8 w-8 rounded-lg shrink-0 flex items-center justify-center text-xs font-800"
className="h-8 w-8 rounded-lg shrink-0 flex items-center justify-center text-xs font-extrabold"
style={{ border: `1px solid ${color}`, color }}
aria-hidden="true"
>
@ -143,7 +143,7 @@ function OrgRow({ org, pageLabel, siteLabel }) {
<OrgMark org={org} color={color} />
<span className="min-w-0">
<span className="block font-800 text-lg leading-tight" style={{ color }}>
<span className="block font-extrabold text-lg leading-tight" style={{ color }}>
{org.name}
</span>
{summary && (
@ -207,7 +207,7 @@ function OrgRow({ org, pageLabel, siteLabel }) {
{areas && (
<p className="text-sm" style={{ color: MUTED }}>
<span className="font-700">Covers</span> {areas}
<span className="font-bold">Covers</span> {areas}
</p>
)}
@ -253,7 +253,7 @@ function Block({ title, orgs, pageLabel, siteLabel }) {
return (
<section className="mb-10">
{title && (
<h3 className="text-xl font-800 mb-1" style={{ color: FALLBACK_COLOR }}>
<h3 className="text-xl font-extrabold mb-1" style={{ color: FALLBACK_COLOR }}>
{title}
</h3>
)}
@ -290,7 +290,7 @@ export default function OrgListVertical({
if (error && organizations.length === 0) {
return shell(
<p className="font-600" style={{ color: accent }}>
<p className="font-semibold" style={{ color: accent }}>
· This list couldn't be loaded just now, please try again shortly ·
</p>
);
@ -298,7 +298,7 @@ export default function OrgListVertical({
if (organizations.length === 0) {
return shell(
<p className="font-600" style={{ color: accent }}>
<p className="font-semibold" style={{ color: accent }}>
{empty}
</p>
);