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
|
|
@ -1,7 +1,10 @@
|
|||
@import '@fontsource/montserrat/400.css';
|
||||
@import '@fontsource/montserrat/600.css';
|
||||
@import '@fontsource/montserrat/700.css';
|
||||
@import '@fontsource/poppins/400.css';
|
||||
@import '@fontsource/poppins/600.css';
|
||||
@import '@fontsource/poppins/700.css';
|
||||
@import '@fontsource/poppins/800.css';
|
||||
|
||||
@import 'tailwindcss';
|
||||
|
||||
|
|
@ -18,6 +21,28 @@ html {
|
|||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
/* One visible focus ring for keyboard users, wherever a component
|
||||
doesn't draw its own. */
|
||||
:focus-visible {
|
||||
outline: 2px solid #0f7183;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Visitors who ask for less motion get no smooth scrolling, slides
|
||||
or hover zooms. */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
background-color: #ffffff;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue