Skip to content

fix(desktop): give selection quote actions an opaque popover surface - #2154

Merged
Astro-Han merged 1 commit into
apache:mainfrom
GabrielDrapor:fix/quote-actions-opaque-surface
Aug 4, 2026
Merged

fix(desktop): give selection quote actions an opaque popover surface#2154
Astro-Han merged 1 commit into
apache:mainfrom
GabrielDrapor:fix/quote-actions-opaque-surface

Conversation

@GabrielDrapor

@GabrielDrapor GabrielDrapor commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Before:
image

After:
image

Problem

The floating 引用 / 在侧栏追问 popup that appears after selecting response text is effectively transparent — transcript text bleeds straight through the buttons, making them hard to read:

  • .maka-quote-actions (the layer wrapper) sets only display: inline-flex, no background.
  • ButtonGroup elevation="med" only adds a box-shadow, by design.
  • The secondary buttons fill with --color-neutral, which is light-dark(#0000000F, #FFFFFF1A) — a 6%-alpha translucent tone meant to sit on an opaque app surface, not to float over text.

Fix

Give .maka-quote-actions the opaque --color-background-popover surface plus the element radius, so the translucent button fills and the group shadow land on a real surface. This mirrors the existing convention for controls floating over scrollable content (ChatLayoutScrollButton puts the same popover surface behind its ghost button).

Also removes the jumpLatest copy key from conversation-copy.ts — it had no consumers in either locale (dead copy found while auditing other floating surfaces).

Validation

  • npm --workspace @maka/ui run typecheck passes
  • dist/__tests__/conversation-localization.test.js — 17/17 pass
  • Audited the other floating surfaces (prompt-rail preview, scroll-to-bottom pill, session context bar, workbar sheet, overlay windows) — all already sit on opaque surfaces; this popup was the only instance.

Co-Authored-By: Claude noreply@anthropic.com

https://claude.ai/code/session_01Ac5rv6WUKWtMZgQb5QPN16

The floating 引用 / 在侧栏追问 selection popup rendered with no background
of its own: the wrapper only set display, ButtonGroup elevation only adds
a shadow, and the secondary buttons' --color-neutral fill is 6%-alpha
black — so transcript text bled straight through the controls.

Give .maka-quote-actions the opaque --color-background-popover surface
and element radius, matching the ChatLayoutScrollButton convention for
controls floating over scrollable content.

Also drop the unused jumpLatest copy key from conversation-copy.ts.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ac5rv6WUKWtMZgQb5QPN16
@Astro-Han

Copy link
Copy Markdown
Contributor

Nice Fix! Merging.

@Astro-Han
Astro-Han merged commit 861ed8f into apache:main Aug 4, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants