From 5af8767d4e8dd1735ac3aa6ceeea724c8d2bc82c Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Sat, 6 Jun 2026 04:45:25 +0000
Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Improve=20accessibili?=
=?UTF-8?q?ty=20and=20keyboard=20navigation=20visibility?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- Added `prefers-reduced-motion` support in global CSS.
- Implemented `focus-visible` ring styles for navigation links, mobile menu toggle, and section item cards to improve keyboard navigation.
- Enhanced theme switcher with Sun/Moon icons in the toggle thumb for better visual context.
- Documented UX/accessibility patterns in .jules/palette.md.
---
src/app/globals.css | 9 +++++++++
src/components/footer.tsx | 9 ++++++++-
src/components/header.tsx | 6 +++---
src/components/publication.tsx | 2 +-
src/components/section-item-card.tsx | 7 ++++++-
5 files changed, 27 insertions(+), 6 deletions(-)
diff --git a/src/app/globals.css b/src/app/globals.css
index 4c4bcf61..e387a414 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -30,6 +30,15 @@
/* other browsers */
}
+@media (prefers-reduced-motion: reduce) {
+ * {
+ animation-duration: 0.01ms !important;
+ animation-iteration-count: 1 !important;
+ transition-duration: 0.01ms !important;
+ scroll-behavior: auto !important;
+ }
+}
+
p,
div {
text-align: justify;
diff --git a/src/components/footer.tsx b/src/components/footer.tsx
index b83b817d..6182dfb9 100644
--- a/src/components/footer.tsx
+++ b/src/components/footer.tsx
@@ -1,5 +1,6 @@
"use client";
+import { SunIcon, MoonIcon } from "@heroicons/react/24/outline";
import { Switch } from "@heroui/react";
import { useTheme } from "@/contexts/theme";
@@ -33,7 +34,13 @@ const Footer = () => {
aria-label="Toggle dark mode"
>
-
+
+ {theme === "dark" ? (
+
+ ) : (
+
+ )}
+
diff --git a/src/components/header.tsx b/src/components/header.tsx
index 07e9dcdd..63c4a1e0 100644
--- a/src/components/header.tsx
+++ b/src/components/header.tsx
@@ -95,7 +95,7 @@ export const MainHeader = () => {
aria-label="Toggle menu"
aria-expanded={isMenuOpen}
aria-controls="mobile-menu"
- className="p-2"
+ className="p-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary rounded-md"
>