From 50a1296a9d90a967841784696abf5180488664c2 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Thu, 2 Apr 2026 21:59:47 +0200 Subject: [PATCH] fix(sidebar): make entire section header row clickable The toggle was only on the chevron button. Now the full row (chevron + icon + label) triggers onToggle on click or Enter/Space. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../layout/Sidebar/Sidebar.module.css | 2 ++ src/design-system/layout/Sidebar/Sidebar.tsx | 19 +++++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/design-system/layout/Sidebar/Sidebar.module.css b/src/design-system/layout/Sidebar/Sidebar.module.css index 12c5bef..c73635a 100644 --- a/src/design-system/layout/Sidebar/Sidebar.module.css +++ b/src/design-system/layout/Sidebar/Sidebar.module.css @@ -215,6 +215,8 @@ gap: 2px; width: 100%; padding: 8px 0 4px; + cursor: pointer; + user-select: none; } .treeSectionChevronBtn { diff --git a/src/design-system/layout/Sidebar/Sidebar.tsx b/src/design-system/layout/Sidebar/Sidebar.tsx index e9e1089..8c5080b 100644 --- a/src/design-system/layout/Sidebar/Sidebar.tsx +++ b/src/design-system/layout/Sidebar/Sidebar.tsx @@ -115,15 +115,18 @@ function SidebarSection({ return (
-
- + {icon && {icon}} {label}