Skip to content

fix(popover): keep tooltip open during text selection - #2495

Merged
dancormier merged 1 commit into
mainfrom
STACKS-943/tooltip-text-selection
Dec 1, 2026
Merged

dancormier merged 1 commit into
mainfrom
STACKS-943/tooltip-text-selection

Conversation

@dancormier

@dancormier dancormier commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

https://stackoverflow.atlassian.net/browse/STACKS-943

Summary

Users can now select and copy text from a Svelte Popover tooltip after focusing its trigger.

Changes

  • Keep the tooltip open when starting a text selection moves focus away from the trigger.
  • Cover dragging to select tooltip text inside a focusable container.

How to test

  1. Open the Popover Tooltip story.
  2. Click Tooltip, then drag across Here I am. The tooltip should stay open and the text should be selected.
  3. Copy the selection and paste it into a text field. It should read Here I am.
  4. Return to the story, focus Tooltip with the keyboard, and press Escape. The tooltip should close.

@changeset-bot

changeset-bot Bot commented Dec 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 86b913c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stackoverflow/stacks-svelte Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify

netlify Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for stackoverflow-email ready!

Name Link
🔨 Latest commit 86b913c
🔍 Latest deploy log https://app.netlify.com/projects/stackoverflow-email/deploys/6b0f3e6dc82d090a6979f0bb
😎 Deploy Preview https://deploy-preview-2495--stackoverflow-email.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for stacks ready!

Name Link
🔨 Latest commit 86b913c
🔍 Latest deploy log https://app.netlify.com/projects/stacks/deploys/6b0f3e6d2731a972f6116025
😎 Deploy Preview https://deploy-preview-2495--stacks.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for stacks-svelte ready!

Name Link
🔨 Latest commit 86b913c
🔍 Latest deploy log https://app.netlify.com/projects/stacks-svelte/deploys/6b0f3e6df8b42763ebe0c904
😎 Deploy Preview https://deploy-preview-2495--stacks-svelte.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@dancormier
dancormier marked this pull request as ready for review December 1, 2026 22:36
@dancormier
dancormier requested a review from a team as a code owner December 1, 2026 22:36
@dancormier
dancormier merged commit 961f433 into main Dec 1, 2026
32 checks passed
@dancormier
dancormier deleted the STACKS-943/tooltip-text-selection branch December 1, 2026 22:36
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.

1 participant