Skip to content

Commit 22942b1

Browse files
authored
Merge pull request #5333 from AntonKhorev/auth-buttons-same-as-preferred
Style small auth buttons similarly to preferred auth buttons
2 parents 377391e + 24ccba6 commit 22942b1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/helpers/user_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def auth_button(provider, options = {})
6060
:size => "36"),
6161
auth_path(options.merge(:provider => provider)),
6262
:method => :post,
63-
:class => "auth_button btn btn-light p-2",
63+
:class => "auth_button btn btn-outline-secondary border p-2",
6464
:title => t("application.auth_providers.#{provider}.title")
6565
)
6666
end

app/views/application/_auth_providers.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
:data => { "bs-toggle" => "collapse",
2121
"bs-target" => "#login_auth_buttons, #openid_login_form" },
2222
:title => t(".openid.title"),
23-
:class => "btn btn-light p-2" %>
23+
:class => "btn btn-outline-secondary border p-2" %>
2424
<% elsif provider != @preferred_auth_provider %>
2525
<%= auth_button provider %>
2626
<% end -%>

test/helpers/user_helper_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def test_user_image_sizes_gravatar
112112
def test_auth_button
113113
button = auth_button("google")
114114
img_tag = "<img alt=\"Google logo\" class=\"rounded-1\" src=\"/images/auth_providers/google.svg\" width=\"36\" height=\"36\" />"
115-
assert_equal("<a class=\"auth_button btn btn-light p-2\" title=\"Log in with Google\" rel=\"nofollow\" data-method=\"post\" href=\"/auth/google\">#{img_tag}</a>", button)
115+
assert_equal("<a class=\"auth_button btn btn-outline-secondary border p-2\" title=\"Log in with Google\" rel=\"nofollow\" data-method=\"post\" href=\"/auth/google\">#{img_tag}</a>", button)
116116
end
117117

118118
private

0 commit comments

Comments
 (0)