diff --git a/.jules/palette.md b/.jules/palette.md new file mode 100644 index 00000000..9a2ff219 --- /dev/null +++ b/.jules/palette.md @@ -0,0 +1,3 @@ +## 2024-05-24 - Semantic HTML and ARIA Labels for Icon Buttons +**Learning:** Found a pattern in this app's custom UI components (like `Navbar.tsx`) where interactive icon-only elements were either missing `aria-label`s or built using non-semantic `div` elements instead of `
- } /> - } /> + } ariaLabel="Notifications" /> + } ariaLabel="User Profile" />
@@ -62,12 +65,14 @@ function NavLink({ href, label }: { href: string, label: string }) { ); } -function IconButton({ icon }: { icon: React.ReactNode }) { +function IconButton({ icon, ariaLabel }: { icon: React.ReactNode, ariaLabel: string }) { return ( {icon}