Skip to content

Keep copy tooltips closed when a dialog opens 🤫📋 - #178

Merged
wotschofsky merged 3 commits into
mainfrom
fix/ip-copy-button-focus
Nov 20, 2026
Merged

wotschofsky merged 3 commits into
mainfrom
fix/ip-copy-button-focus

Conversation

@wotschofsky

@wotschofsky wotschofsky commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Focus the dialog itself on open so the copy button tooltip stays hidden until the button receives focus.
  • Add a regression test for the dialog’s initial focus.

Testing

  • pnpm vitest run: 630 tests passed.
  • pnpm tsc --noEmit: passed.
  • ESLint and Prettier checks for the changed files: passed.

Summary by cubic

Focuses the dialog container itself on open instead of its first interactive control, so the copy button tooltip no longer appears while the dialog is still animating in.

  • Adds an onOpenAutoFocus handler that skips default autofocus and focuses the dialog element without scrolling.
  • Adds the outline-hidden class to the dialog content.
  • Adds a regression test asserting the dialog receives initial focus.

Written for commit fcc19b5. Summary will update on new commits.

View guided diff Turn on auto-fix

- Add a regression test for dialog focus
- Prevent autofocus from opening the copy tooltip during the entrance animation
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
domain-digger Ready Ready Preview Nov 20, 2026 7:38pm UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T17:30:26.497348Z d001022 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

View guided diff | Turn on auto-fix | Re-trigger cubic

@wotschofsky wotschofsky changed the title Focus the dialog itself when opening 🪟🎯 Keep copy tooltips closed when a dialog opens 🤫📋 Nov 20, 2026
@wotschofsky
wotschofsky merged commit b42b1b7 into main Nov 20, 2026
11 checks passed

This branch was successfully deployed

1 active deployment
Preview — fcc19b5d Deployed Nov 20, 2026 by vercel[bot]
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