feat(ui): site-wide UX/UI audit — unified buttons, tokens, accessibility
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 35s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m10s
Build and Push Docker Images / Build Integrator (push) Successful in 57s
Build and Push Docker Images / Build Kestra Init (push) Successful in 31s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 0s

- Add shared button system (.btn-primary/secondary/tertiary/active) in globals.css
- Replace 40+ hardcoded rgba() values with design tokens across all CSS modules
- Add skip link, :focus-visible indicators, and ARIA landmarks
- Standardise button labels ("+ Compare" / "✓ Comparing") across all components
- Add collapse/minimize toggle to ComparisonToast
- Fix heading hierarchy (h3→h2 in ComparisonView)
- Add aria-live on search results, aria-label on trend SVGs
- Add "Search" nav link, fix footer empty section, unify max-widths
- Darken --text-muted for WCAG AA compliance (4.6:1 contrast ratio)
- Net reduction of ~180 lines through button style deduplication

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-25 20:28:03 +00:00
parent 5cdafc887e
commit 8aca0a7a53
23 changed files with 237 additions and 418 deletions

View File

@@ -149,67 +149,6 @@
box-sizing: border-box;
}
.btnView {
display: inline-flex;
align-items: center;
padding: 0.5rem 1rem;
font-size: 0.875rem;
font-weight: 500;
color: var(--text-secondary, #5c564d);
border: 1px solid var(--border-color, #e5dfd5);
border-radius: 6px;
text-decoration: none;
transition: all 0.15s ease;
white-space: nowrap;
box-sizing: border-box;
}
.btnView:hover {
background: var(--bg-secondary, #f3ede4);
color: var(--text-primary, #1a1612);
border-color: var(--text-muted, #8a847a);
}
.btnCompare {
display: inline-flex;
align-items: center;
padding: 0.5rem 1rem;
font-size: 0.875rem;
font-weight: 600;
color: white;
background: var(--accent-coral, #e07256);
border: 1px solid transparent;
border-radius: 6px;
cursor: pointer;
transition: background 0.15s ease;
white-space: nowrap;
box-sizing: border-box;
}
.btnCompare:hover {
background: var(--accent-coral-dark, #c45a3f);
}
.btnRemove {
display: inline-flex;
align-items: center;
padding: 0.5rem 1rem;
font-size: 0.875rem;
font-weight: 500;
color: var(--text-secondary, #5c564d);
background: var(--bg-secondary, #f3ede4);
border: 1px solid var(--border-color, #e5dfd5);
border-radius: 6px;
cursor: pointer;
transition: all 0.15s ease;
white-space: nowrap;
box-sizing: border-box;
}
.btnRemove:hover {
background: var(--border-color, #e5dfd5);
color: var(--text-primary, #1a1612);
}
/* ── Ofsted badge ────────────────────────────────────── */
.ofstedBadge {
@@ -223,10 +162,10 @@
line-height: 1.4;
}
.ofsted1 { background: rgba(45, 125, 125, 0.12); color: var(--accent-teal, #2d7d7d); }
.ofsted1 { background: var(--accent-teal-bg); color: var(--accent-teal, #2d7d7d); }
.ofsted2 { background: rgba(60, 140, 60, 0.12); color: #3c8c3c; }
.ofsted3 { background: rgba(201, 162, 39, 0.15); color: #b8920e; }
.ofsted4 { background: rgba(224, 114, 86, 0.15); color: var(--accent-coral, #e07256); }
.ofsted3 { background: var(--accent-gold-bg); color: #b8920e; }
.ofsted4 { background: var(--accent-coral-bg); color: var(--accent-coral, #e07256); }
/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 640px) {