diff --git a/.jules/palette.md b/.jules/palette.md new file mode 100644 index 00000000..6a95ecf9 --- /dev/null +++ b/.jules/palette.md @@ -0,0 +1,3 @@ +## 2025-05-23 - [Standardizing Icon Button Accessibility and Tooltips] +**Learning:** Icon-only buttons without labels or tooltips create "mystery meat navigation" and are inaccessible to screen readers. Standardizing on `Tooltip` for visual labels and `aria-label` for parity ensures a consistent and accessible UX across desktop and mobile. +**Action:** Always wrap new icon-only buttons in `Tooltip` (desktop) and ensure `aria-label` is present for all icon-only interactions. diff --git a/app/layout.tsx b/app/layout.tsx index b9ea46ea..e58d3d88 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -19,6 +19,7 @@ import { HistorySidebar } from '@/components/history-sidebar' import { MapLoadingProvider } from '@/components/map-loading-context'; import ConditionalLottie from '@/components/conditional-lottie'; import { MapProvider as MapContextProvider } from '@/components/map/map-context' +import { TooltipProvider } from '@/components/ui/tooltip' const fontSans = FontSans({ subsets: ['latin'], @@ -109,12 +110,14 @@ export default function RootLayout({ > -
- - {children} - -