Skip to content
SprecherEast
Issue 1375

enhancement: Match the Google G and passkey icon spacing in the sign-in buttons

Back to our plan
Done
enhancementfrontendauthstylingpriority: medium

Problem

On the login page the passkey icon sits almost against the button's top and bottom edges: it has about 6 px of space there, while the Google "G" has about 12 px. The two buttons don't read as a matched pair. #1372 made both logos share one 32 px slot, which kept the buttons equal in height but not the space around each logo.

Proposed fix

  • Show the Google "G" at the same 32 px height as the passkey icon (FIDO's minimum for its icon is about 30 px, so the icon stays as it is).
  • Use the shared Button's own lg size (48 px tall) for both sign-in buttons, so each logo gets the same 8 px above and below. No custom overrides; the size comes from the Button's existing configuration.
  • Keep one definition of the logo height in BrandLogo (both logos use it).

Existing work compared

Searched open and closed issues for passkey icon, BrandLogo and sign-in buttons. #1372 (closed) set the shared slot and trimmed the tile; this finishes the spacing it could not reach at the old button height. The Button already offers md (44 px) and lg (48 px), so no new component or variant is needed.

Acceptance criteria

  • Not done: The "G" and the passkey icon are both 32 px tall.
  • Not done: Both buttons use the shared Button lg size, and the gap above and below each logo measures the same.
  • Not done: Both buttons are the same height, in light and dark, at six widths including a phone.
  • Not done: The "G" keeps its own colours and proportions (Google's branding rules); the icon is untouched.
  • Not done: Every other use of these buttons (login, sign-up, account) still looks right.
  • Not done: The UI kit note, gallery entry and component-set.md describe the sizes.

Files likely touched

src/platform/ui/BrandLogo.tsx and its test, the sign-in buttons in src/modules/accounts/ui/ (their size), src/platform/ui/README.md, docs/ui/component-set.md, the gallery.

Must not touch

The Button component's own sizes, sign-in behaviour and logic, the icon artwork, the FIDO credit line wording.

Open questions

None. The owner agreed (2026-11-20, voice) to enlarge the "G" to match, and to use the Button's own configuration, with a middle ground only if no native size fits; lg fits.

Area

frontend, auth, styling

Priority

priority: medium


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab