From b80dc14142d0919b834e26a8bfb19bc105f289cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 8 Oct 2026 16:21:00 +0200 Subject: [PATCH] Clear the accessibility findings on about, privacy, achievements, cycle and admin Inline links on the prose pages carry an underline and their body copy reads in the content colour, so the links no longer rely on colour alone and the code chips meet contrast. Locked achievements drop the opacity that pushed their text below AA. The cycle calendar nests its headers and day cells in ARIA rows, the login overview's page-size select is named, and the measurement type badges take a lighter wash in the light theme so their label holds 4.5:1. --- src/app/about/page.tsx | 10 +- src/app/achievements/page.tsx | 2 +- src/app/privacy/page.tsx | 18 +- .../admin/login-overview-section.tsx | 10 +- .../cycle/__tests__/cycle-calendar.test.tsx | 12 + src/components/cycle/cycle-calendar.tsx | 370 +++++++++--------- .../measurements/measurement-list-meta.ts | 179 +++++---- 7 files changed, 328 insertions(+), 273 deletions(-) diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index 45d3e0e4e..9d039b5e6 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -60,7 +60,7 @@ function Section({

{title}

-
+
{children}
@@ -117,7 +117,7 @@ export default function AboutPage() { href="https://github.com/MBombeck/HealthLog" target="_blank" rel="noopener noreferrer" - className="text-primary hover:underline" + className="text-primary underline underline-offset-2" > github.com/MBombeck/HealthLog {" "} @@ -145,7 +145,7 @@ export default function AboutPage() { href="https://www.maxmind.com" target="_blank" rel="noopener noreferrer" - className="text-primary hover:underline" + className="text-primary underline underline-offset-2" > www.maxmind.com @@ -164,7 +164,7 @@ export default function AboutPage() { href="https://www.maxmind.com/en/geolite/eula" target="_blank" rel="noopener noreferrer" - className="text-primary hover:underline" + className="text-primary underline underline-offset-2" > GeoLite End User License Agreement @@ -173,7 +173,7 @@ export default function AboutPage() { href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank" rel="noopener noreferrer" - className="text-primary hover:underline" + className="text-primary underline underline-offset-2" > Creative Commons Attribution-ShareAlike 4.0 International License {" "} diff --git a/src/app/achievements/page.tsx b/src/app/achievements/page.tsx index 57d1d4f8a..257acee02 100644 --- a/src/app/achievements/page.tsx +++ b/src/app/achievements/page.tsx @@ -175,7 +175,7 @@ function AchievementCard({ achievement, t }: AchievementCardProps) { className={ unlocked ? "border-primary/30 from-primary/8 to-primary/0 rounded-xl border bg-gradient-to-br p-3" - : "border-border bg-card/50 rounded-xl border p-3 opacity-70" + : "border-border bg-card/50 rounded-xl border p-3" } >
diff --git a/src/app/privacy/page.tsx b/src/app/privacy/page.tsx index 915eb8666..5d639e3f9 100644 --- a/src/app/privacy/page.tsx +++ b/src/app/privacy/page.tsx @@ -71,7 +71,7 @@ function Section({ {`${numberLabel}. ${titleEn}`}
@@ -94,7 +94,7 @@ function Section({
{bodyEn} @@ -164,7 +164,7 @@ function SubProcessor({ href={policyUrl} target="_blank" rel="noopener noreferrer" - className="text-primary hover:underline" + className="text-primary underline underline-offset-2" > Privacy policy / Datenschutzerklärung @@ -358,7 +358,7 @@ export default function PrivacyPage() { href="https://github.com/MBombeck/HealthLog" target="_blank" rel="noopener noreferrer" - className="text-primary hover:underline" + className="text-primary underline underline-offset-2" > github.com/MBombeck/HealthLog {" "} @@ -392,7 +392,7 @@ export default function PrivacyPage() { href="https://github.com/MBombeck/HealthLog" target="_blank" rel="noopener noreferrer" - className="text-primary hover:underline" + className="text-primary underline underline-offset-2" > github.com/MBombeck/HealthLog {" "} @@ -1959,7 +1959,7 @@ export default function PrivacyPage() { {" "} mbombeck@gmail.com @@ -1980,7 +1980,7 @@ export default function PrivacyPage() { href="https://github.com/MBombeck/HealthLog/issues" target="_blank" rel="noopener noreferrer" - className="text-primary hover:underline" + className="text-primary underline underline-offset-2" > github.com/MBombeck/HealthLog/issues {" "} @@ -2008,7 +2008,7 @@ export default function PrivacyPage() { {" "} mbombeck@gmail.com @@ -2028,7 +2028,7 @@ export default function PrivacyPage() { href="https://github.com/MBombeck/HealthLog/issues" target="_blank" rel="noopener noreferrer" - className="text-primary hover:underline" + className="text-primary underline underline-offset-2" > github.com/MBombeck/HealthLog/issues {" "} diff --git a/src/components/admin/login-overview-section.tsx b/src/components/admin/login-overview-section.tsx index d601f396d..819798e2c 100644 --- a/src/components/admin/login-overview-section.tsx +++ b/src/components/admin/login-overview-section.tsx @@ -328,7 +328,10 @@ export function LoginOverviewSection() { {/* Toolbar row: per-page + export */}
- + {t("admin.section.auditLog.perPage")}