From 7f4d35e576012b83b48c1ce26653a9e637d94d00 Mon Sep 17 00:00:00 2001 From: Leo Li Date: Mon, 2 Nov 2026 23:59:21 +0000 Subject: [PATCH] fix(agent-pane): an open toggle keeps its on fill under the pointer Co-Authored-By: Claude Opus 5.5 Agent-Session: https://cmux.com/deeplink/agent?id=aid-a2f53c60d9511e7ec747 --- webviews/src/agent-session/acpmux/header/header.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webviews/src/agent-session/acpmux/header/header.css b/webviews/src/agent-session/acpmux/header/header.css index b8577e34d932..24bb1b0b3247 100644 --- a/webviews/src/agent-session/acpmux/header/header.css +++ b/webviews/src/agent-session/acpmux/header/header.css @@ -17,9 +17,10 @@ .acpmux-header-tools .acpmux-header-tool:disabled{color:var(--agent-soft)} .acpmux-header-tools .acpmux-header-tool:not(:disabled):hover,.acpmux-header-tools .acpmux-header-tool[data-popup-open]{color:var(--agent-text)} /* Hover: the pill under the pointer only. On (a toggle whose panel is open) or holding its open menu: the filled - rounded square, hovered or not, with the lit ink while on (PaneToolbarView: Palette.litGlyph). */ + rounded square, hovered or not (as specific as the hover rule and after it, so the pointer never swaps it for the + pill), with the lit ink while on (PaneToolbarView: Palette.litGlyph). */ .acpmux-header-tools .acpmux-header-tool:not(:disabled):hover,.acpmux-floating-header .acpmux-header-tool:not(:disabled):hover,.acpmux-floating-bar .acpmux-header-tool:not(:disabled):hover{background:var(--acpmux-header-tool-hover,color-mix(in srgb,var(--agent-text) 8%,transparent))} -.acpmux-header-tools .acpmux-header-tool:is([aria-pressed=true],[data-popup-open]),.acpmux-floating-header .acpmux-header-tool:is([aria-pressed=true],[data-popup-open]),.acpmux-floating-bar .acpmux-header-tool:is([aria-pressed=true],[data-popup-open]){background:var(--acpmux-header-tool-on,color-mix(in srgb,var(--agent-text) 12%,transparent))} +.acpmux-header-tools .acpmux-header-tool:not(:disabled):is([aria-pressed=true],[data-popup-open]),.acpmux-floating-header .acpmux-header-tool:not(:disabled):is([aria-pressed=true],[data-popup-open]),.acpmux-floating-bar .acpmux-header-tool:not(:disabled):is([aria-pressed=true],[data-popup-open]){background:var(--acpmux-header-tool-on,color-mix(in srgb,var(--agent-text) 12%,transparent))} .acpmux-header-tools .acpmux-header-tool[aria-pressed=true],.acpmux-header-tools .acpmux-header-tool[aria-pressed=true]:not(:disabled):hover{color:var(--agent-lit-glyph,var(--agent-accent,var(--agent-text)))} .acpmux-floating-header .acpmux-header-tool,.acpmux-floating-bar .acpmux-header-tool{color:var(--agent-muted)} .acpmux-floating-header .acpmux-header-tool:not(:disabled):hover,.acpmux-floating-bar .acpmux-header-tool:not(:disabled):hover,.acpmux-floating-header .acpmux-header-tool[data-popup-open],.acpmux-floating-bar .acpmux-header-tool[data-popup-open]{color:var(--agent-text)}