From 42216ea32626984cfad83464c7374e301fd9c8d2 Mon Sep 17 00:00:00 2001 From: Jason Staack Date: Sun, 15 Mar 2026 21:10:17 -0500 Subject: [PATCH] fix(a11y): add keyboard support and aria-expanded to audit log rows Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/components/audit/AuditLogTable.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/audit/AuditLogTable.tsx b/frontend/src/components/audit/AuditLogTable.tsx index 5cec0bf..55cbcae 100644 --- a/frontend/src/components/audit/AuditLogTable.tsx +++ b/frontend/src/components/audit/AuditLogTable.tsx @@ -355,13 +355,16 @@ function AuditLogRow({ item, isExpanded, onToggle }: AuditLogRowProps) { isExpanded && 'bg-elevated/20', )} onClick={onToggle} + tabIndex={0} + onKeyDown={(e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); onToggle() } }} + aria-expanded={isExpanded} > {hasDetails ? ( isExpanded ? ( - +