Skip to content

fix: check visible keyboard badges on touch screens - #4982

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4923
Nov 1, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4923

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The touch checks counted retained DOM nodes rather than visible keyboard hints. The composer keeps an empty badge when a placeholder needs rich content, and the existing .lf-key-badge:empty rule hides it with display: none; the failing CI screenshot shows no key badge. Both touch checks now require zero visible badges, preserving the guarantee that a phone advertises no keyboard shortcuts without constraining the retained renderer's structure. Runtime behavior is unchanged.

The reported field assertion fails on current main with one retained badge. After the assertion correction, both focused touch tests pass (2 passed):

uv run pytest tests/browser/navigation/test_key_surfaces.py -q -n0 -k 'field_names_no_key_to_a_finger or coarse_pointer_keeps_useful_status'

The rich placeholder supports the separate speaker faces introduced in #4804 and the reply arrangement in #4510; this repair keeps those choices. The existing placeholder-text checks and navigation checks remain in place.

Closes #4923 — automated triage

Touch checks now protect the absence of painted keyboard hints instead of requiring retained placeholder badge nodes to be removed. The original field assertion fails on main because Lit retains an empty badge, hidden by the existing :empty rule; both focused touch checks pass with visibility assertions. Product behavior is unchanged.

Closes #4923
@leaf-agent
leaf-agent merged commit 7a45d30 into main Nov 1, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4923 branch November 1, 2026 19:27
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.

Touch comment fields retain a keyboard badge

1 participant