From 267f95b365b54379d5ca6810b00cdad07bb93af9 Mon Sep 17 00:00:00 2001 From: HDinger Date: Thu, 28 Apr 2016 15:34:28 +0200 Subject: [PATCH] Remove tabindex attribute (#4367) --- app/assets/stylesheets/content/_accounts.sass | 1 + app/views/account/_password_login_form.html.erb | 11 ++++++----- app/views/hooks/login/_auth_provider.html.erb | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/content/_accounts.sass b/app/assets/stylesheets/content/_accounts.sass index 73eed58983..ae8b5bd0f0 100644 --- a/app/assets/stylesheets/content/_accounts.sass +++ b/app/assets/stylesheets/content/_accounts.sass @@ -37,6 +37,7 @@ .login-links float: right text-align: right + margin-top: -3rem #content .login-auth-providers.wide width: auto diff --git a/app/views/account/_password_login_form.html.erb b/app/views/account/_password_login_form.html.erb index 4a3349f7e9..67d7304653 100644 --- a/app/views/account/_password_login_form.html.erb +++ b/app/views/account/_password_login_form.html.erb @@ -33,14 +33,14 @@ See doc/COPYRIGHT.rdoc for more details.
<%= styled_label_tag 'username', User.human_attribute_name(:login) %>
- <%= styled_text_field_tag 'username', params[:username], tabindex: 1 %> + <%= styled_text_field_tag 'username', params[:username] %>
<%= styled_label_tag 'password', User.human_attribute_name(:password) %>
- <%= styled_password_field_tag 'password', nil, tabindex: 2, autofocus: params.include?(:username) %> + <%= styled_password_field_tag 'password', nil, autofocus: params.include?(:username) %>
@@ -55,17 +55,18 @@ See doc/COPYRIGHT.rdoc for more details. <% end %> + +
- <%= javascript_tag "Form.Element.focus('username');" %> <% end %> diff --git a/app/views/hooks/login/_auth_provider.html.erb b/app/views/hooks/login/_auth_provider.html.erb index 5c46962e01..2414293659 100644 --- a/app/views/hooks/login/_auth_provider.html.erb +++ b/app/views/hooks/login/_auth_provider.html.erb @@ -28,7 +28,7 @@ See doc/COPYRIGHT.rdoc for more details. ++#%> <% unless Rails.env.production? %> - + Omniauth Developer <% end %>