From 93407ade032aa91a49c5c8fd76b881572a42af1b Mon Sep 17 00:00:00 2001 From: Ginger Date: Tue, 9 Jun 2026 10:05:44 -0400 Subject: [PATCH] fix: Accessibility improvements --- src/web/pages/resources/common.css | 7 ++++++- .../pages/templates/_components/avatar.html.j2 | 4 ++-- src/web/pages/templates/_layout.html.j2 | 2 +- src/web/pages/templates/error.html.j2 | 2 +- src/web/pages/templates/grant.html.j2 | 2 +- src/web/pages/templates/login.html.j2 | 6 +++--- src/web/pages/templates/register.html.j2 | 16 ++++++++-------- 7 files changed, 22 insertions(+), 17 deletions(-) diff --git a/src/web/pages/resources/common.css b/src/web/pages/resources/common.css index f4b6d9cbf..f3307c72d 100644 --- a/src/web/pages/resources/common.css +++ b/src/web/pages/resources/common.css @@ -4,7 +4,7 @@ --background-color: #fff; --text-color: #000; - --secondary: #666; + --secondary: #555; --bg: oklch(0.76 0.0854 317.27); --panel-bg: oklch(0.91 0.042 317.27); --c1: oklch(0.44 0.177 353.06); @@ -84,6 +84,10 @@ footer { width: 100%; height: 64px; } + + @media (prefers-color-scheme: light) { + --name-lightness: 0.35; + } } p { @@ -312,6 +316,7 @@ ul.bullet-separated { position: relative; float: right; cursor: default; + font-size: small; span { display: inline-block; diff --git a/src/web/pages/templates/_components/avatar.html.j2 b/src/web/pages/templates/_components/avatar.html.j2 index 4ed170897..a15075ab0 100644 --- a/src/web/pages/templates/_components/avatar.html.j2 +++ b/src/web/pages/templates/_components/avatar.html.j2 @@ -1,6 +1,6 @@ {% match avatar_type %} {% when AvatarType::Initial with (initial) %} - {{ initial }} + {% when AvatarType::Image with (src) %} - + {% endmatch %} diff --git a/src/web/pages/templates/_layout.html.j2 b/src/web/pages/templates/_layout.html.j2 index 77f2ca4fa..ac884becb 100644 --- a/src/web/pages/templates/_layout.html.j2 +++ b/src/web/pages/templates/_layout.html.j2 @@ -19,7 +19,7 @@ {%~ block content %}{% endblock ~%} {%~ block footer ~%} {%~ endblock ~%} diff --git a/src/web/pages/templates/error.html.j2 b/src/web/pages/templates/error.html.j2 index 92f68f9c2..4f38adc72 100644 --- a/src/web/pages/templates/error.html.j2 +++ b/src/web/pages/templates/error.html.j2 @@ -10,7 +10,7 @@ {%- block content -%}
-
+