Skip to content

Pick a stack layer with a tap instead of opening its site - #27

Merged
kvlonge merged 1 commit into
mainfrom
fix/phone-stack-tap
Nov 30, 2026
Merged

kvlonge merged 1 commit into
mainfrom
fix/phone-stack-tap

Conversation

@kvlonge

@kvlonge kvlonge commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Why

On a phone, tapping a layer in the hero stack opened the tool's site at once, so trying to look at a layer took you off the page.

Changes

  • On a touch screen a tap lights the layer, shows its name and switches the tool card below to it. Taps never open the site; the card's header link does.
  • The tapped layer is focused, so the card switches on iPhone too, where Safari does not focus a tapped link.
  • Tapping anywhere else puts the layer out.
  • Mouse hover and click, Enter, and screen readers' link activation are unchanged.

Verification

  • New test: on a touch phone, two taps on the SQLLoad layer keep the page, light the layer and switch the card; a tap elsewhere clears it. With a mouse, a click opens the site. The touch case fails on main (the tap navigates away).
  • npx playwright test: 8 passed.
  • Enter on a focused layer still opens the site; rendered a tapped layer on a phone in light and dark.

On a phone, tapping a layer in the hero stack opened the tool's site
straight away, so you couldn't look at a layer without leaving the page.
A tap now lights the layer, names it and switches the tool card below to
it; the card links to the site. Tapping elsewhere puts the layer out.
A mouse click, Enter and screen readers still open the site.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying sqlstack with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8bf003a
Status: ✅  Deploy successful!
Preview URL: https://ddd3d7be.sqlstack.pages.dev
Branch Preview URL: https://fix-phone-stack-tap.sqlstack.pages.dev

View logs

@kvlonge
kvlonge merged commit 2ccead0 into main Nov 30, 2026
4 checks passed
@kvlonge
kvlonge deleted the fix/phone-stack-tap branch November 30, 2026 15:32
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