diff --git a/.jules/palette.md b/.jules/palette.md new file mode 100644 index 00000000..2b8b44f0 --- /dev/null +++ b/.jules/palette.md @@ -0,0 +1,4 @@ + +## 2026-02-20 - [Accessible Header Actions] +**Learning:** Icon-only buttons in the navigation header lack clear visual and screen-reader context. While ARIA labels solve accessibility, they don't provide visual guidance for sighted users on hover. +**Action:** Always pair ARIA labels with Tooltips for icon-only navigation elements. Ensure a global TooltipProvider is available in the root layout to support these components. diff --git a/app/layout.tsx b/app/layout.tsx index b9ea46ea..b3ccd12b 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -17,6 +17,7 @@ import { CalendarToggleProvider } from '@/components/calendar-toggle-context' import { HistoryToggleProvider } from '@/components/history-toggle-context' import { HistorySidebar } from '@/components/history-sidebar' import { MapLoadingProvider } from '@/components/map-loading-context'; +import { TooltipProvider } from '@/components/ui/tooltip' import ConditionalLottie from '@/components/conditional-lottie'; import { MapProvider as MapContextProvider } from '@/components/map/map-context' @@ -109,12 +110,14 @@ export default function RootLayout({ > -
- - {children} - -