Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .Jules/palette.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 2024-07-01 - Add aria-controls to conditionally rendered accordions
**Learning:** When an accordion's content is conditionally rendered in React (e.g., `{expanded ? <div>...</div> : null}`), adding `aria-controls` to the trigger button will point to a non-existent ID when collapsed, breaking screen reader association.
**Action:** Always provide an empty persistent container with the `id` (e.g., `<div id={contentId}>{expanded ? <Content /> : null}</div>`) or apply the `id` to both branches of a ternary to ensure the association remains unbroken.
Loading
Loading