diff --git a/.jules/palette.md b/.jules/palette.md new file mode 100644 index 0000000..5e26c9c --- /dev/null +++ b/.jules/palette.md @@ -0,0 +1,3 @@ +## 2025-02-21 - Accessible Tabs Pattern +**Learning:** React Tabs need `role="tablist"`, `role="tab"`, `aria-selected`, `aria-controls`, and `id` for proper accessibility and keyboard navigation. Using React `useId` for components is helpful for auto-generating accessible IDs. +**Action:** When implementing tabs or collapsibles, ensure these ARIA attributes are correctly linked. diff --git a/src/app/cite/page.tsx b/src/app/cite/page.tsx index 0d86f84..873d07c 100644 --- a/src/app/cite/page.tsx +++ b/src/app/cite/page.tsx @@ -1961,7 +1961,11 @@ function CitePageContent() { onTabChange={setActiveTab} /> -