Skip to content

Give MainButtonView iOS's kinds: primary, secondary, destructive - #93

Merged
dadachi merged 2 commits into
mainfrom
d2-button-kinds
Oct 25, 2026
Merged

dadachi merged 2 commits into
mainfrom
d2-button-kinds

Conversation

@dadachi

@dadachi dadachi commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Same as NativeAppTemplate-Android #139.

  • MainButtonType (PRIMARY filled primary/onPrimary, SECONDARY a primary outline, DESTRUCTIVE an error outline), required at every MainButtonView, in the kind of the iOS screen's button. Sign Out and Delete Shop no longer look like Sign In.
  • Sign-in screen: "Forgot your password?" and "Didn't receive confirmation instructions?" are text links, as on iOS.
  • The light primary is Blue20 (iOS's light accent) instead of Blue40 (3.4:1 under white text).

Test plan

  • MainButtonTypeTest (kinds differ; 4.5:1 text in light and dark).
  • Local CI: spotlessCheck, lintDebug, minifyReleaseWithR8, test.

🤖 Generated with Claude Code

https://claude.ai/code/session_018iXcEetCio5kwB6Fhf2EJi

dadachi and others added 2 commits October 25, 2026 09:10
Every button was the same onSurface outline, so signing out or deleting looked like signing in.
MainButtonType (PRIMARY filled, SECONDARY a primary outline, DESTRUCTIVE an error outline) is
required at every call, in the kind of the iOS screen's button. On the sign-in screen "Forgot your
password?" and "Didn't receive confirmation instructions?" are text links, as on iOS.

The light primary was Blue40, 3.4:1 under white text and on the background; it is now Blue20,
iOS's light accent (MainButtonTypeTest).

Same as NativeAppTemplate-Android. Found while building Orange Baton from the template.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018iXcEetCio5kwB6Fhf2EJi
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018iXcEetCio5kwB6Fhf2EJi
@dadachi
dadachi merged commit 3d6b4fd into main Oct 25, 2026
1 check passed
@dadachi
dadachi deleted the d2-button-kinds branch October 29, 2026 07:57
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