From 7f4e8c93e2f1b4db24cf37d521c053cd466126c3 Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Sat, 14 Mar 2026 16:13:06 +0100 Subject: [PATCH] fix(a11y): fix WCAG AA contrast and WCAG 2.5.3 failures from third report - css/tailwind.css: upgrade nav/mobile-nav/theme-toggle text from surface-600 (fails 4.5:1) to surface-700 across .site-nav, .nav-dropdown-menu, .menu-toggle, .mobile-nav, .mobile-nav-toggle, .theme-toggle, .mobile-theme-toggle - post.njk: fix AI disclosure details and 'Also on:' span to surface-700 - webmentions.njk: fix summary to surface-700; fix Send button from bg-accent-600 (3.18:1) to bg-accent-700 (4.95:1) - h-card.njk: fix p-adr address and PGP key link to surface-700 - base.njk: fix mobile theme toggle aria-label per WCAG 2.5.3 - post-categories.njk: fix category pills text-accent-700 to text-accent-800 - post-navigation.njk: fix no-OG fallback Previous/Next labels to surface-700 Co-Authored-By: Claude Sonnet 4.6 --- _includes/components/h-card.njk | 4 ++-- _includes/components/post-navigation.njk | 4 ++-- _includes/components/webmentions.njk | 4 ++-- _includes/components/widgets/post-categories.njk | 4 ++-- _includes/layouts/base.njk | 2 +- _includes/layouts/post.njk | 6 +++--- css/tailwind.css | 14 +++++++------- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/_includes/components/h-card.njk b/_includes/components/h-card.njk index 644dd9a..3ea06d8 100644 --- a/_includes/components/h-card.njk +++ b/_includes/components/h-card.njk @@ -47,7 +47,7 @@

{{ authorTitle }}

{% endif %} {# Structured address #} -

+

{% if authorLocality %} {{ authorLocality }}{% if authorCountry %}, {% endif %} {% endif %} @@ -83,7 +83,7 @@ {% endif %} {% if authorKeyUrl %} - + 🔐 PGP Key {% endif %} diff --git a/_includes/components/post-navigation.njk b/_includes/components/post-navigation.njk index f54194a..703e0a8 100644 --- a/_includes/components/post-navigation.njk +++ b/_includes/components/post-navigation.njk @@ -39,7 +39,7 @@ {% else %}

- ← Previous + ← Previous {{ _prevTitle }} @@ -85,7 +85,7 @@ {% else %}
- Next → + Next → {{ _nextTitle }} diff --git a/_includes/components/webmentions.njk b/_includes/components/webmentions.njk index 9d5663a..51eaebb 100644 --- a/_includes/components/webmentions.njk +++ b/_includes/components/webmentions.njk @@ -183,7 +183,7 @@ {# Webmention send form — collapsed by default #}
- + @@ -206,7 +206,7 @@ > diff --git a/_includes/components/widgets/post-categories.njk b/_includes/components/widgets/post-categories.njk index b85ba1a..87debc7 100644 --- a/_includes/components/widgets/post-categories.njk +++ b/_includes/components/widgets/post-categories.njk @@ -5,12 +5,12 @@

Categories

{% if category is string %} - + {{ category }} {% else %} {% for cat in category %} - + {{ cat }} {% endfor %} diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 8f9e111..5e52116 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -268,7 +268,7 @@ Dashboard {# Mobile theme toggle #} -