From a4c6a03b935fd09098f7da821d9a1c0a30b88859 Mon Sep 17 00:00:00 2001 From: Simon Knox Date: Tue, 18 Jul 2017 23:45:11 +1000 Subject: add padding above Remember Me for social login also fix case --- app/views/devise/shared/_omniauth_box.html.haml | 4 ++-- spec/support/login_helpers.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/devise/shared/_omniauth_box.html.haml b/app/views/devise/shared/_omniauth_box.html.haml index e80d10dc8f1..bfd7dd25a7d 100644 --- a/app/views/devise/shared/_omniauth_box.html.haml +++ b/app/views/devise/shared/_omniauth_box.html.haml @@ -7,6 +7,6 @@ %span.light - has_icon = provider_has_icon?(provider) = link_to provider_image_tag(provider), omniauth_authorize_path(:user, provider), method: :post, class: 'oauth-login' + (has_icon ? ' oauth-image-link' : ' btn'), id: "oauth-login-#{provider}" - %fieldset + %fieldset.prepend-top-10 = check_box_tag :remember_me - = label_tag :remember_me, 'Remember Me' + = label_tag :remember_me, 'Remember me' diff --git a/spec/support/login_helpers.rb b/spec/support/login_helpers.rb index b410a652126..e538c5dd5a7 100644 --- a/spec/support/login_helpers.rb +++ b/spec/support/login_helpers.rb @@ -62,7 +62,7 @@ module LoginHelpers visit new_user_session_path expect(page).to have_content('Sign in with') - check 'Remember Me' if remember_me + check 'remember_me' if remember_me click_link "oauth-login-#{provider}" end -- cgit v1.2.1