Skip to content

Stop tap flash and accidental selection on controls - #42

Open
kemiljk wants to merge 1 commit into
mainfrom
fix/touch-select-papercuts
Open

Stop tap flash and accidental selection on controls#42
kemiljk wants to merge 1 commit into
mainfrom
fix/touch-select-papercuts

Conversation

@kemiljk

@kemiljk kemiljk commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Reset now kills iOS tap highlight and long-press callout on labels, buttons, summaries, and widget roles — tapping a checkbox label no longer flashes grey.
  • React and Web Components pair -webkit-user-select: none on every clickable control (and add it where it was missing: Nav, Breadcrumbs, Label, chips). Double-tapping a button no longer selects its label.
  • Same treatment on the docs site chrome (header, sidebar, TOC, copy chip). Links stay selectable so copying their text still works.

Test plan

  • On a phone or Safari with touch emulation, tap a checkbox/switch/radio label — no grey tap flash
  • Rapidly tap a Button (and a Button-as-link) — label text does not select
  • Double-click an Accordion/sidebar disclosure — trigger label does not select
  • Drag from a Nav link or breadcrumb — no page-wide text selection
  • Select and copy a paragraph and a real link in docs prose — still works
  • Switch docs radius to Round and spot-check a form page (checkbox, button, tabs)
  • Confirm bun run test:shape still passes

Made with Cursor

The reset omitted labels, so tapping a checkbox still showed iOS's
grey highlight. Pair -webkit-user-select everywhere selection is
suppressed so a double-tap on a button doesn't select its label.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
kernel-ui Ready Ready Preview Aug 20, 2026 4:21pm

Request Review

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