diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 00000000..92bd39f0 --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,3 @@ +## 2024-05-08 - TabBar and SaveRow Accessibility +**Learning:** Dynamic status messages in UI components (like success/error text in save bars) should be wrapped in an `aria-live="polite"` region with `role="status"` to ensure screen readers announce updates dynamically. Tab bars need explicit `role="tablist"` and `role="tab"` with `aria-selected` tracking the active state. +**Action:** When implementing custom interactive components like tabs or dynamic save notifications, always verify standard ARIA roles and live regions are included. diff --git a/src/components/ui/SaveRow.tsx b/src/components/ui/SaveRow.tsx index 177e3e9a..5c1c73eb 100644 --- a/src/components/ui/SaveRow.tsx +++ b/src/components/ui/SaveRow.tsx @@ -18,17 +18,20 @@ export default function SaveRow({ const isError = message?.toLowerCase().includes('erreur'); return (