Skip to content

Mobile controls: 44px buttons, 16px form fields, dock hides while typing - #38

Open
fromknowware wants to merge 2 commits into
mainfrom
mobile/controls
Open

fromknowware wants to merge 2 commits into
mainfrom
mobile/controls

Conversation

@fromknowware

@fromknowware fromknowware commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Part of the mobile audit (#33), area: buttons and form controls (global). Rows G8, F1, F2, X1 in drafts/mobile/AUDIT.md.

What was wrong

  • .kw-btn (home, definition, stories, share, dossier, 404, gate, order, contribute): 41px tall, under the 44px target.
  • /contribute: text fields at 14px font, 42px tall. iOS Safari zooms the page when a field under 16px takes focus and does not zoom back (measured: 6 fields under 16px). Field labels 11px.
  • /order waiting-list input 41px.
  • The fixed pre-order bar stays on screen when the on-screen keyboard is up, i.e. on top of the field being typed into.

Changes

  • .kw-btn { min-height: 44px }.
  • .field-input: min-height: 48px, font-size: 16px at ≤900px (desktop keeps 14px), labels 12px; form uses the full width on phones.
  • /order field 48px, label 14px.
  • body:has(input:focus, textarea:focus, select:focus) #kw-dock { display: none }: no script, and it comes back when focus leaves (checkboxes/radios do not hide it). Measured: dock flex → none while a field is focused.

Before / after (320, 375, 430)

controls

Test plan

  • scripts/mobile-check.mjs on /contribute, /order, /definition, /stories, story page, /method, /rules, /colophon, 404 at 320/375/430/844: no .kw-btn, field or 16px failures left (only the shared nav/footer targets from Mobile: nav menu, dismissible dock bar, safe-area insets #32 remain); axe light/dark/warm: zero violations
  • Real iPhone: focus a field on /contribute: no zoom, bar hides, field visible above the keyboard
  • Android Chrome: same

🤖 Generated with Claude Code

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
knowware-book 4cd7306 Oct 20 2026, 12:52 AM

iamkhayyam and others added 2 commits October 19, 2026 18:42
…le typing

.kw-btn was 41px tall everywhere; the contribute form's fields were 14px (iOS
Safari zooms the page on focus and does not zoom back) and 42px tall; the
waiting-list field 41px. Buttons are 44px, fields 48px and 16px on phones, the
field labels 12px. A fixed bar would sit on the field being typed in, so the
dock bar hides while a text field has focus (:has, no script).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

2 participants