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-06-20 - Adding ARIA attributes to Toggle Menu Buttons
**Learning:** Found that custom UI action menus without built-in accessibility features (`aria-expanded`, `aria-haspopup`) are common for "More Options" (`MoreHorizontal` icon) triggers in the codebase, reducing screen-reader discoverability for crucial context menus.
**Action:** When inspecting list-item action bars, specifically check for `aria-expanded` and `aria-haspopup` on the trigger buttons to ensure screen readers correctly interpret them as menus and announce their open/closed state.
5 changes: 4 additions & 1 deletion src/components/events/EventAnnotations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,11 @@ export default function EventAnnotations({
setShowActionsFor(showActionsFor === thread.id ? null : thread.id)
}
className="rounded-lg p-1.5 text-[#9CA3AF] hover:bg-[#F8FAFC] hover:text-[#666666] transition-colors"
aria-label="More actions"
aria-expanded={showActionsFor === thread.id}
aria-haspopup="menu"
>
<MoreHorizontal className="size-4" />
<MoreHorizontal className="size-4" aria-hidden="true" />
</button>

<AnimatePresence>
Expand Down
Loading