Skip to content

feat: add core.Zero, plain ui.Field and reorganize the gallery's inputs - #2243

Merged
oneo-me merged 4 commits into
mainfrom
agiox/add-plain-text-input-example
Nov 23, 2026
Merged

oneo-me merged 4 commits into
mainfrom
agiox/add-plain-text-input-example

Conversation

@oneo-me

@oneo-me oneo-me commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • core.Zero: a length that is set, as core.Transparent is a color, so a style can set Padding, Margin, Borders, BorderWidth, CornerRadius or a gap to none over another style's. restyle turns it to 0 in a view's committed style, so layout and backends never see it.
  • ui.Field draws its box on the field itself, under the caller's style: Background: core.Transparent, BorderWidth: core.Zero turns it off, for text that reads as plain text but edits. Its static colors now win over its look.
  • ui.Input loses its padding with Padding: core.All(core.Zero).
  • Gallery: the Input page shows only ui fields (a ui.Field card, keyboard types, autofill, a plain title) without the gallery's own field look or a working form; a Form page holds FormField and FormSection; a Mobile keyboard page under Platform holds the keyboard's height, dismissal, sheet and message bar.

Testing

  • go tool nsgo check, and -target ios,android,web,windows,linux
  • go tool nsgo test: TestZeroTakesAwayALength, TestField, TestInputPaddingOff, TestInputPage

🤖 Generated with Claude Code

@oneo-me oneo-me self-assigned this Nov 23, 2026
@github-actions github-actions Bot added size/XL enhancement New feature or request documentation Improvements or additions to documentation core ui labels Nov 23, 2026
@oneo-me
oneo-me enabled auto-merge (rebase) November 23, 2026 13:42
@oneo-me
oneo-me merged commit 5dbf66e into main Nov 23, 2026
24 of 25 checks passed
@oneo-me
oneo-me deleted the agiox/add-plain-text-input-example branch November 23, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core documentation Improvements or additions to documentation enhancement New feature or request size/XL ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant