Skip to content

fix(playground): stop preview mode help tooltip opening with share popover - #1542

Merged
joshunrau merged 2 commits into
mainfrom
fix/playground-share-tooltip-focus
Sep 15, 2026
Merged

joshunrau merged 2 commits into
mainfrom
fix/playground-share-tooltip-focus

Conversation

@thomasbeaudry

@thomasbeaudry thomasbeaudry commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Clicking the Share button opened the "Preview Mode" ? help tooltip automatically, because the nested Radix Tooltip inside the Popover was triggered by the popover's focus management.
  • Replaced the inner Radix Tooltip with a CSS-only group-hover tooltip, so it only appears on real mouse hover; styled to match the libui tooltip (bg-primary text-primary-foreground text-xs).
  • Disabled popover autofocus (autofocus={false}).

Test plan

  • Build the playground image from this branch (docker compose --profile playground up -d --build playground), click Share: help tooltip no longer appears
  • Hover the ? icon: tooltip appears with the original colors
  • Share link, preview-mode toggle and copy button still work

🤖 Generated with Claude Code

thomasbeaudry and others added 2 commits September 15, 2026 00:29
… ShareButton

The Radix Tooltip inside the Popover was being triggered by Radix's focus
management when the share popover opened, causing the preview mode help
tooltip to appear automatically. Replace with a CSS-only group-hover
tooltip that can only be triggered by real mouse hover.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BBe3SLygptW8XQ4UimdF3v
@joshunrau
joshunrau merged commit 3959481 into main Sep 15, 2026
6 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