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 = () => {