Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pull/4916'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jun 27, 2024
2 parents 1c17962 + 8e1071e commit 5cc0b26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/helpers/user_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def auth_button(name, provider, options = {})
:size => "36"),
auth_path(options.merge(:provider => provider)),
:method => :post,
:class => "auth_button p-2 d-block",
:class => "auth_button btn btn-light mx-1 p-2 d-block",
:title => t("application.auth_providers.#{name}.title")
)
end
Expand All @@ -77,7 +77,7 @@ def auth_button_preferred(name, provider, options = {})
:size => "36") + t("application.auth_providers.#{name}.title"),
auth_path(options.merge(:provider => provider)),
:method => :post,
:class => "auth_button fs-6 border rounded text-body-secondary text-decoration-none py-2 px-4 d-flex justify-content-center align-items-center",
:class => "auth_button btn btn-outline-secondary fs-6 border rounded py-2 px-4 d-flex justify-content-center align-items-center",
:title => t("application.auth_providers.#{name}.title")
)
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/application/_auth_providers.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"#",
:id => "openid_open_url",
:title => t("application.auth_providers.openid.title"),
:class => "p-2 d-block" %>
:class => "btn btn-light mx-1 p-2 d-block" %>
<% %w[google facebook microsoft github wikipedia].each do |provider| %>
<% unless @preferred_auth_provider == provider %>
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/user_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def test_openid_logo
def test_auth_button
button = auth_button("google", "google")
img_tag = "<img alt=\"Log in with a Google OpenID\" class=\"rounded-1\" src=\"/images/google.svg\" width=\"36\" height=\"36\" />"
assert_equal("<a class=\"auth_button p-2 d-block\" title=\"Log in with Google\" rel=\"nofollow\" data-method=\"post\" href=\"/auth/google\">#{img_tag}</a>", button)
assert_equal("<a class=\"auth_button btn btn-light mx-1 p-2 d-block\" title=\"Log in with Google\" rel=\"nofollow\" data-method=\"post\" href=\"/auth/google\">#{img_tag}</a>", button)
end

private
Expand Down

0 comments on commit 5cc0b26

Please sign in to comment.