Skip to content

fix(native): smooth Input focus on 3.0 (port of #402) - #403

Merged
lorant-one merged 1 commit into
feat/3-0-breaking-cleanupfrom
fix/native-3-0-input-focus
Nov 2, 2026
Merged

lorant-one merged 1 commit into
feat/3-0-breaking-cleanupfrom
fix/native-3-0-input-focus

Conversation

@lorant-one

Copy link
Copy Markdown
Member

Before: on the 3.0 branch, a native Input's label jumps from the middle of the field to the top when you focus it, and on web the inner text control draws its own browser focus ring inside the field.

After: the label moves up and shrinks in one 150ms animation, which is skipped when reduce motion is on, and the inner browser ring is gone, so the field's own focus border is the only one.

How: this is a cherry-pick of #402 from preview. The label is an animated, absolutely positioned layer that is lifted by translateY and scale. The text control keeps its place under the label, and outlineWidth: 0 turns off the inner ring. The label uses the 3.0 prop name textVariant. Typecheck, biome, jest (149), vitest (107) and check:ai all pass locally.


Generated by Claude Code

…ng (#402)

Before, focusing an empty field snapped the label to the top and pulled
the text control out of an invisible overlay into the flow, and on the
web demo the browser drew its own ring around the text line inside the
field's border. The label now animates (transform only, native driver,
none with reduce motion) while the text control stays put, and the
inner ring is off: the field's border already shows focus.

Claude-Session: https://claude.ai/code/session_01WH2VptULRpwysRyx2fUFos

Co-authored-by: Claude <[email protected]>
@lorant-one
lorant-one merged commit bd87d05 into feat/3-0-breaking-cleanup Nov 2, 2026
6 checks passed
@lorant-one
lorant-one deleted the fix/native-3-0-input-focus branch November 15, 2026 10:38
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