Skip to content

[Website] Make desktop address suggestions clickable and input-width - #4135

Merged
adamziel merged 1 commit into
trunkfrom
adamziel/fix-popover-links-width
Jul 21, 2026
Merged

[Website] Make desktop address suggestions clickable and input-width#4135
adamziel merged 1 commit into
trunkfrom
adamziel/fix-popover-links-width

Conversation

@adamziel

@adamziel adamziel commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Motivation for the change, related issues

Desktop address suggestions could not be clicked because their portaled listbox reached the floating Dock's pointer handler and was captured as a drag surface.

Implementation details

The Dock now treats the listbox as a control, so suggestion clicks retain their native pointer sequence. The desktop popover also follows the full URL input width and sits 8px above it. Mobile keeps its existing compact width and position.

Desktop

Before After
Narrow address suggestion popover touching the URL input Address suggestion popover matching the URL input with a small gap

Mobile (unchanged)

Before After
Compact mobile address suggestion popover Unchanged compact mobile address suggestion popover

Testing Instructions (or ideally a Blueprint)

On desktop, focus the URL input and click Dashboard. Confirm WordPress navigates to /wp-admin/, the popover matches the input width, and a small gap separates them. Resize to mobile and confirm the compact popover layout still behaves as before.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Fixes desktop Dock address suggestion interactions by preventing Dock drag handling from capturing pointer events on the portaled suggestions list, and adjusts desktop popover sizing/positioning to match the URL input.

Changes:

  • Treats the suggestions listbox as a Dock “control” so pointer sequences aren’t converted into Dock drags on desktop.
  • Updates AddressBar to accept isMobile and sizes/offsets the popover differently on desktop vs mobile.
  • Adds a Playwright E2E test covering navigation via address bar suggestions.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/playground/website/src/components/dock/dock.tsx Expands “interactive target” detection to include the portaled listbox and wires isMobile into AddressBar.
packages/playground/website/src/components/address-bar/index.tsx Implements desktop popover width/offset behavior and keeps width in sync on resize.
packages/playground/website/playwright/e2e/website-ui.spec.ts Adds regression coverage for clicking address suggestions to navigate.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/playground/website/src/components/address-bar/index.tsx
Comment thread packages/playground/website/playwright/e2e/website-ui.spec.ts
@adamziel
adamziel merged commit 5287b24 into trunk Jul 21, 2026
53 checks passed
@adamziel
adamziel deleted the adamziel/fix-popover-links-width branch July 21, 2026 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment