Accessibility pass, WCAG 2.2 AA (1.50.0)
Public pages, auth, registration, payment, My Events and the kiosk: skip link, focus ring, labels tied to fields, named quantity buttons, announced errors, ModalOverlay popups (focus trap, Escape, focus return), contrast and underlined in-text links, reduced motion. Branding warns about a primary colour too light for white text and offers a darker shade. axe-core and keyboard checks in e2e/accessibility.spec.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { Search, UserPlus, CreditCard, Calendar, Ticket, LogIn, KeyRound, MessageCircleQuestion, Phone } from "lucide-react";
|
||||
import { Search, UserPlus, CreditCard, Calendar, Ticket, LogIn, KeyRound, MessageCircleQuestion, Phone, Keyboard } from "lucide-react";
|
||||
import { GuideItem } from "@/components/shared/GuideItem";
|
||||
import type { HelpContent } from "./types";
|
||||
|
||||
@@ -84,6 +84,27 @@ export const generalHelpContent: HelpContent = {
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
key: "accessibility",
|
||||
label: "Keyboard & screen readers",
|
||||
icon: Keyboard,
|
||||
content: (
|
||||
<div className="space-y-4">
|
||||
<p>You can use the site without a mouse, and with a screen reader.</p>
|
||||
<div className="space-y-4">
|
||||
<GuideItem icon={Keyboard} title="Keyboard" tone="brand">
|
||||
Press Tab to move through links, fields and buttons (Shift+Tab goes back); an outline shows where you are. The first Tab on any page offers "Skip to main content". Enter or Space presses a button, and Escape closes a popup.
|
||||
</GuideItem>
|
||||
<GuideItem icon={Ticket} title="Choosing tickets" tone="green">
|
||||
The + and − buttons next to each ticket are read out as "Add one …" and "Remove one …", and the new number is announced.
|
||||
</GuideItem>
|
||||
<GuideItem icon={MessageCircleQuestion} title="Something hard to use?" tone="amber">
|
||||
Let us know through the Contact page — we'll help you book and fix the problem.
|
||||
</GuideItem>
|
||||
</div>
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
key: "help",
|
||||
label: "Still need help?",
|
||||
|
||||
@@ -65,9 +65,12 @@ export const siteSettingsHelpContent: HelpContent = {
|
||||
icon: Palette,
|
||||
content: (
|
||||
<div className="space-y-4">
|
||||
<p>Your logo and accent color.</p>
|
||||
<GuideItem icon={Palette} title="Accent color" tone="violet">
|
||||
This only recolors the organisation name next to the logo in the top navigation bar. Every other button, link, and highlight across the site uses a fixed color scheme by design — changing this setting won't change anything else.
|
||||
<p>Your logo and colours, with a live preview of the website and emails.</p>
|
||||
<GuideItem icon={Palette} title="Primary colour" tone="violet">
|
||||
Used for buttons, links and highlights across the site and in emails. Buttons have white text on it and links use it on white, so it must be dark enough to read. If it isn't (under 4.5:1 contrast), the preview shows a warning and a <strong>Use a darker shade</strong> button with the closest readable shade of your colour.
|
||||
</GuideItem>
|
||||
<GuideItem icon={Palette} title="Secondary and accent" tone="brand">
|
||||
Light tints for backgrounds and hover states — they stay light whatever you pick.
|
||||
</GuideItem>
|
||||
</div>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user