From 3dc76a9bc0383d9bc5316603cad02bf6857a181d Mon Sep 17 00:00:00 2001 From: Emin Kocan Date: Fri, 21 Jun 2024 14:14:54 +0200 Subject: [PATCH] style auth buttons using .btn & .btn-light classes --- 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 e2de9934f..bf6b9988b 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -64,7 +64,7 @@ module UserHelper :size => "24"), 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 diff --git a/app/views/application/_auth_providers.html.erb b/app/views/application/_auth_providers.html.erb index 0cbb529a5..c3fef47d9 100644 --- a/app/views/application/_auth_providers.html.erb +++ b/app/views/application/_auth_providers.html.erb @@ -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 %> diff --git a/test/helpers/user_helper_test.rb b/test/helpers/user_helper_test.rb index 3cd53e169..7d9d558f2 100644 --- a/test/helpers/user_helper_test.rb +++ b/test/helpers/user_helper_test.rb @@ -117,7 +117,7 @@ class UserHelperTest < ActionView::TestCase def test_auth_button button = auth_button("google", "google") img_tag = "\"Log" - assert_equal("#{img_tag}", button) + assert_equal("#{img_tag}", button) end private -- 2.39.5