From dfbe8875f590859822c8d528bb34ec587b1f91f8 Mon Sep 17 00:00:00 2001 From: Mark Eaton Date: Mon, 13 Apr 2026 11:53:20 -0400 Subject: [PATCH] move theme toggle to own Vue app for better tab order Relocate the light/dark toggle button out of #app1 and into a new #app3 mount just before the back-to-top element so keyboard focus reaches it near the end of the page instead of right after the main nav. Replace the library logo's reactive :src binding with a plain src plus data-light-src/data-dark-src so app1 no longer needs any theme state; app3 now owns toggleTheme, overlay updates, logo swap, and the OS preference listener. --- groups/home/bootstrap5/home1.html | 22 ++++--- groups/home/bootstrap5/home1.js | 102 +++++++++++++++--------------- 2 files changed, 65 insertions(+), 59 deletions(-) diff --git a/groups/home/bootstrap5/home1.html b/groups/home/bootstrap5/home1.html index afb35e0..1c9df21 100644 --- a/groups/home/bootstrap5/home1.html +++ b/groups/home/bootstrap5/home1.html @@ -80,7 +80,9 @@ id="library-logo" class="image-fail" alt="Kibbee Library logo" - :src="isDark ? 'https://d2jv02qf7xgjwx.cloudfront.net/accounts/16298/images/Kibbee_library_logo_inverted2.jpg' : 'https://libapps.s3.amazonaws.com/accounts/16298/images/xsmall-2.jpg'" + src="https://libapps.s3.amazonaws.com/accounts/16298/images/xsmall-2.jpg" + data-light-src="https://libapps.s3.amazonaws.com/accounts/16298/images/xsmall-2.jpg" + data-dark-src="https://d2jv02qf7xgjwx.cloudfront.net/accounts/16298/images/Kibbee_library_logo_inverted2.jpg" /> {{content_box_33471502}} @@ -94,14 +96,6 @@ - @@ -369,6 +363,16 @@ Loading... +
+ +