Skip to content

Use shared Button component in PWA install card#714

Merged
rzueger merged 1 commit intodevelopfrom
fix/install-card-button-consistency
Apr 19, 2026
Merged

Use shared Button component in PWA install card#714
rzueger merged 1 commit intodevelopfrom
fix/install-card-button-consistency

Conversation

@rzueger
Copy link
Copy Markdown
Member

@rzueger rzueger commented Apr 19, 2026

Summary

Swap the PWA install card's custom styled InstallButton for the shared <Button> component so it matches the passkey prompt tile when both are rendered side-by-side on the start page.

Why

After #713 moved PostLoginPasskeyPrompt to the shared <Button>, the two cards on the start page had mismatched CTAs:

  • Passkey tile: shared <Button> — uppercase, 2px radius, box-shadow, 1.2em font
  • PWA install card: custom InstallButton — title case, 5px radius, no shadow, 1em font

Side-by-side this reads as inconsistent. Now both use the same button.

Changes

  • Remove the InstallButton styled component
  • Render <Button primary label={...} onClick={install} dataCy="install-button" /> instead
  • Update tests to locate the button by text rather than by data-testid (the shared component exposes data-cy)

No behaviour change — the button still calls install() on click and the card still hides immediately.

Test plan

  • 1932 tests pass, typecheck clean
  • Visually verified side-by-side on localhost:8080 with both tiles forced visible

Swap the PWA install card's custom styled button for the shared
<Button> component so it matches the passkey prompt tile rendered
next to it. Both cards now use the same app-wide button style
(box-shadow, uppercase label, theme-primary fill).
@rzueger rzueger merged commit cea06c2 into develop Apr 19, 2026
2 checks passed
@rzueger rzueger deleted the fix/install-card-button-consistency branch April 19, 2026 10: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