From 112505e854cc9f7d4786ed3e571b4bd809585a78 Mon Sep 17 00:00:00 2001 From: Oleg Isonen Date: Tue, 10 Nov 2026 22:12:46 +0000 Subject: [PATCH] fix: Restore whole section header toggle (#6668) Clicking a Style panel section title expands or collapses it again. The chevron-only click target made the rest of the header inert. This restores the full-width trigger in the shared section header. Separate header controls and clickable property labels keep their own actions. Other sections using this shared header regain the same click target. ### Checklist - [x] Restore whole-header toggling while preserving separate controls - [x] Review documentation impact: the Style panel guide does not describe a specific click target - [x] Check the diff for unrelated changes and whitespace errors - [x] Pin the visual-regression runner to an Ubuntu version supported by the installed Playwright - [x] Required CI checks ### Verification `git diff --check`, PR lint, submodule checks, visual regression, and the full main workflow passed, including all ten Builder end-to-end shards. The first visual-regression run stopped before screenshots because Playwright 1.50.1 cannot install Chromium on Ubuntu 26.04; the pinned Ubuntu 24.04 run passed. Local tests and Storybook were not run. Ref #6659 Ref #6638 --- .../src/components/section-title.tsx | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/packages/design-system/src/components/section-title.tsx b/packages/design-system/src/components/section-title.tsx index f217b3d4d8..8b25eae01c 100644 --- a/packages/design-system/src/components/section-title.tsx +++ b/packages/design-system/src/components/section-title.tsx @@ -59,18 +59,8 @@ const labelContainerStyle = css({ pointerEvents: "none", }); -const titleButtonStyle = css({ - all: "unset", - display: "flex", - alignItems: "center", - justifyContent: "center", - width: theme.panel.paddingInline, - height: "100%", - boxSizing: "border-box", - "&:focus-visible": { - ...focusRingStyle(), - [chevronOpacity]: 1, - }, +const titleButtonStyle = css(titleButtonLayoutStyle, { + "&:focus-visible": focusRingStyle(), }); const suffixSlotStyle = css({ @@ -86,6 +76,7 @@ const invisibleSuffixStyle = css({ const chevronStyle = css({ width: theme.spacing[7], opacity: cssVar(chevronOpacity, "0"), + translate: "-100%", transition: "transform 150ms, opacity 200ms", color: cssVar("--foreground-secondary"), variants: {