mirror of
https://github.com/we-promise/sure.git
synced 2026-06-04 18:29:02 +00:00
The Google button used Google's prebuilt `gsi-material-button` (its own CSS file + hardcoded hex colors), leaving it the odd one out: capped at 400px (its `max-width` overrode `w-full`) so it sat narrower than the OpenID/GitHub buttons, and rendered as a glaring white block in dark mode with no theming. Render every SSO provider through one `DS::Button(variant: :outline, full_width: true)` so the stack is consistent and reads as secondary to the primary email "Log in" CTA. Google keeps its official multi-color "G" mark and "Sign in with Google" wording (brand-compliant) via a new `google-icon.svg` asset and an additive `icon_custom:` flag on the button (defaults false — no change to any existing button). Delete `google-sign-in.css` and its import.
14 lines
421 B
Plaintext
14 lines
421 B
Plaintext
<%= container do %>
|
|
<% if icon && (icon_position != :right) %>
|
|
<%= helpers.icon(icon, size: size, color: icon_color, custom: icon_custom, class: icon_classes) %>
|
|
<% end %>
|
|
|
|
<% unless icon_only? %>
|
|
<span class="min-w-0 truncate"><%= text %></span>
|
|
<% end %>
|
|
|
|
<% if icon && icon_position == :right %>
|
|
<%= helpers.icon(icon, size: size, color: icon_color, custom: icon_custom) %>
|
|
<% end %>
|
|
<% end %>
|