From 24ccba60cb3666272d18ebb7585a6beacf77a7bf Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Fri, 15 Nov 2024 19:09:57 +0300 Subject: [PATCH] Style small auth buttons similarly to preferred auth buttons --- app/helpers/user_helper.rb | 2 +- app/views/application/_auth_providers.html.erb | 2 +- test/helpers/user_helper_test.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5