From: Anton Khorev Date: Fri, 15 Nov 2024 16:09:57 +0000 (+0300) Subject: Style small auth buttons similarly to preferred auth buttons X-Git-Tag: live~71^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/24ccba60cb3666272d18ebb7585a6beacf77a7bf Style small auth buttons similarly to preferred auth buttons --- diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index 0831cde6e..e00a2253f 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -60,7 +60,7 @@ module UserHelper :size => "36"), auth_path(options.merge(:provider => provider)), :method => :post, - :class => "auth_button btn btn-light p-2", + :class => "auth_button btn btn-outline-secondary border p-2", :title => t("application.auth_providers.#{provider}.title") ) end diff --git a/app/views/application/_auth_providers.html.erb b/app/views/application/_auth_providers.html.erb index f6665cefe..3feda6139 100644 --- a/app/views/application/_auth_providers.html.erb +++ b/app/views/application/_auth_providers.html.erb @@ -20,7 +20,7 @@ :data => { "bs-toggle" => "collapse", "bs-target" => "#login_auth_buttons, #openid_login_form" }, :title => t(".openid.title"), - :class => "btn btn-light p-2" %> + :class => "btn btn-outline-secondary border p-2" %> <% elsif provider != @preferred_auth_provider %> <%= auth_button provider %> <% end -%> diff --git a/test/helpers/user_helper_test.rb b/test/helpers/user_helper_test.rb index 56f5776ad..16c854a51 100644 --- a/test/helpers/user_helper_test.rb +++ b/test/helpers/user_helper_test.rb @@ -112,7 +112,7 @@ class UserHelperTest < ActionView::TestCase def test_auth_button button = auth_button("google") img_tag = "\"Google" - assert_equal("#{img_tag}", button) + assert_equal("#{img_tag}", button) end private