From 6f392bef657f87cbcbc78e2a82390407de1ca9c5 Mon Sep 17 00:00:00 2001 From: Peter van Arkel Date: Thu, 21 May 2026 15:01:14 +0200 Subject: [PATCH] (ui) Highlight current navigation section Mark the active primary or system navigation link with aria-current and a subtle visual state so staff users can see where they are in the control panel without making Admin a primary app route. Refs #37 --- .../templates/pobsync_backend/base.html | 17 +++++++++++------ src/pobsync_backend/tests/test_views.py | 9 +++++++++ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/pobsync_backend/templates/pobsync_backend/base.html b/src/pobsync_backend/templates/pobsync_backend/base.html index 35eef5f..8f6337a 100644 --- a/src/pobsync_backend/templates/pobsync_backend/base.html +++ b/src/pobsync_backend/templates/pobsync_backend/base.html @@ -80,6 +80,11 @@ padding-left: 0; } nav strong a:hover { background: transparent; } + nav a[aria-current="page"] { + background: #eaf3fb; + color: var(--link-strong); + font-weight: 720; + } .nav-primary, .nav-secondary { align-items: center; @@ -890,15 +895,15 @@