mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-01 21:05:42 +09:00
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
This commit is contained in:
1 parent
89ca46cd7f
commit
112505e854
1 file changed
+3
-12
@@ -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: {
|
||||
|
||||
Reference in new issue
Block a user