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
|
|
@ -45,8 +45,8 @@ import {
|
|||
function GroupMenu({ item, lit, pathname }) {
|
||||
const children = item.children ?? [];
|
||||
const link = lit
|
||||
? "font-semibold text-[#138ba0]"
|
||||
: "text-[#4a6b72] transition-colors hover:text-[#138ba0]";
|
||||
? "font-semibold text-[#0f7183]"
|
||||
: "text-[#4a6b72] transition-colors hover:text-[#0f7183]";
|
||||
|
||||
return (
|
||||
<div className="group relative">
|
||||
|
|
@ -68,7 +68,7 @@ function GroupMenu({ item, lit, pathname }) {
|
|||
to={child.to}
|
||||
className={`block rounded-lg px-3 py-2 text-sm transition-colors hover:bg-[#eef9fb] ${
|
||||
matches(pathname, child.to)
|
||||
? "font-semibold text-[#138ba0]"
|
||||
? "font-semibold text-[#0f7183]"
|
||||
: "text-[#26454c]"
|
||||
}`}
|
||||
>
|
||||
|
|
@ -130,7 +130,7 @@ export default function AdminLayout() {
|
|||
|
||||
const subnav = active?.children ?? [];
|
||||
|
||||
const wordmark = <span className="text-lg font-bold text-[#138ba0]">{areaTitle}</span>;
|
||||
const wordmark = <span className="text-lg font-bold text-[#0f7183]">{areaTitle}</span>;
|
||||
|
||||
return (
|
||||
<div className="flex min-h-screen flex-col bg-[#f6fbfc]">
|
||||
|
|
@ -172,7 +172,7 @@ export default function AdminLayout() {
|
|||
<button
|
||||
type="button"
|
||||
onClick={handleLogout}
|
||||
className="rounded-full border border-[#4a6b72]/30 px-4 py-1.5 font-medium transition-colors hover:bg-[#eef9fb] hover:text-[#138ba0]"
|
||||
className="rounded-full border border-[#4a6b72]/30 px-4 py-1.5 font-medium transition-colors hover:bg-[#eef9fb] hover:text-[#0f7183]"
|
||||
>
|
||||
Sign out
|
||||
</button>
|
||||
|
|
@ -190,8 +190,8 @@ export default function AdminLayout() {
|
|||
to={child.to}
|
||||
className={
|
||||
child === activeChild
|
||||
? "font-semibold text-[#138ba0]"
|
||||
: "text-[#4a6b72] transition-colors hover:text-[#138ba0]"
|
||||
? "font-semibold text-[#0f7183]"
|
||||
: "text-[#4a6b72] transition-colors hover:text-[#0f7183]"
|
||||
}
|
||||
>
|
||||
{child.label}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue