From 38f33bbd83e17c262c2ee1f06617d304f533c1d9 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 7 May 2026 20:54:26 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Add=20accessibility?= =?UTF-8?q?=20attributes=20and=20focus=20rings=20to=20Navbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added `aria-expanded` and `aria-haspopup` to the Forum dropdown button. - Added `aria-expanded` and `aria-controls` to the mobile menu toggle button. - Added explicitly associated `id="mobile-menu"` to the mobile menu container. - Added explicit keyboard focus rings (`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-500`) to interactive, icon-only buttons (theme toggles, mobile menu). - Documented findings in `.jules/palette.md`. Co-authored-by: belpythons <187399139+belpythons@users.noreply.github.com> --- .jules/palette.md | 3 +++ src/components/layout/Navbar.jsx | 15 ++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 .jules/palette.md diff --git a/.jules/palette.md b/.jules/palette.md new file mode 100644 index 0000000..3deb21c --- /dev/null +++ b/.jules/palette.md @@ -0,0 +1,3 @@ +## 2024-05-23 - Interactive Disclosure Widgets & Icon-only Focus Rings +**Learning:** Global navigation elements, mobile menus, and interactive dropdowns often lack `aria-expanded` attributes, making it difficult for screen readers to understand their state. Furthermore, icon-only buttons frequently miss explicit focus rings, hampering keyboard navigation. +**Action:** Always include `aria-expanded` for interactive disclosure widgets to communicate state to screen readers. For interactive icon-only elements, ensure they include explicit focus rings like `focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-500` to comply with keyboard accessibility standards. \ No newline at end of file diff --git a/src/components/layout/Navbar.jsx b/src/components/layout/Navbar.jsx index de3fea5..4426c25 100644 --- a/src/components/layout/Navbar.jsx +++ b/src/components/layout/Navbar.jsx @@ -95,7 +95,9 @@ const Navbar = () => {