From b51b39c3a78405461887e192f54c1605949ec0e2 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sun, 10 May 2026 23:44:23 -0400 Subject: [PATCH] a11y: keyboard-accessible panel toggles, region landmarks in inspector - Add role="button" tabindex="0" aria-expanded to .link-host-title in both static and JS-rendered panels (host panels + UniFi switches) - Sync aria-expanded in togglePanel(), restoreCollapseState(), collapseAll(), and expandAll() - Add keydown handler (Enter/Space) so panel headers are keyboard-operable - Add role="region" aria-label to inspector main chassis area - Add role="complementary" aria-label to inspector port detail panel - Replace last inline date-parse in renderLinks() with _toIso() helper Co-Authored-By: Claude Sonnet 4.6 --- templates/inspector.html | 4 ++-- templates/links.html | 37 ++++++++++++++++++++++++++----------- 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/templates/inspector.html b/templates/inspector.html index 495b5df..90cff93 100644 --- a/templates/inspector.html +++ b/templates/inspector.html @@ -14,10 +14,10 @@
-
+
-
+
diff --git a/templates/links.html b/templates/links.html index 014725b..fb628fb 100644 --- a/templates/links.html +++ b/templates/links.html @@ -349,7 +349,7 @@ function renderUnifiSwitches(unifiSwitches, dataUpdated) { return `