Repository navigation
fix(native): Input's label glides on focus, without a second focus ring - #402
Merged
Merged
Conversation
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. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WH2VptULRpwysRyx2fUFos
lorant-one
added a commit
that referenced
this pull request
Nov 2, 2026
…ng (#402) (#403) 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]>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before: focusing an empty native Input snapped its label to the top. The text control also jumped out of an invisible overlay into the layout. In the web demo, the browser drew a second rounded ring around the text line, inside the field's own border.
After: the label glides from the value's place to the top of the field, as on the web, and the text control stays where it is. The extra ring is gone, since the field's border already shows focus.
How:
translateYandscale, using the native driver, withtransformOrigin: "left top". With reduce motion on, it jumps instead of animating.outlineWidth: 0.Checks run from packages/native: tsc and biome are clean, jest has 137 tests passing, and vitest has 71 passing. I also screenshotted the demo form before and after focus to confirm the change.
Generated by Claude Code