diff --git a/lms/static/js/student_account/views/AccessView.js b/lms/static/js/student_account/views/AccessView.js index d36e9385fe..60e838c83c 100644 --- a/lms/static/js/student_account/views/AccessView.js +++ b/lms/static/js/student_account/views/AccessView.js @@ -119,6 +119,9 @@ var edx = edx || {}; // Listen for 'password-email-sent' event to toggle sub-views this.listenTo( this.subview.passwordHelp, 'password-email-sent', this.passwordEmailSent ); + + // Focus on the form + $('.password-reset-form').focus(); }, register: function( data ) { @@ -180,6 +183,9 @@ var edx = edx || {}; // Update url without reloading page History.pushState( null, document.title, '/account/' + type + '/' + queryStr ); analytics.page( 'login_and_registration', type ); + + // Focus on the form + document.getElementById(type).focus(); }, /** diff --git a/lms/static/sass/multicourse/_account.scss b/lms/static/sass/multicourse/_account.scss index 041ad3b690..8c50ae95c7 100644 --- a/lms/static/sass/multicourse/_account.scss +++ b/lms/static/sass/multicourse/_account.scss @@ -98,7 +98,6 @@ // layout .content-wrapper { - background: $account-content-wrapper-bg; padding-bottom: 0; } diff --git a/lms/static/sass/views/_login-register.scss b/lms/static/sass/views/_login-register.scss index c1cc521e3a..4467055890 100644 --- a/lms/static/sass/views/_login-register.scss +++ b/lms/static/sass/views/_login-register.scss @@ -22,10 +22,6 @@ $sm-btn-google: #dd4b39; $sm-btn-facebook: #3b5998; $sm-btn-linkedin: #0077b5; -.section-bkg-wrapper { - background: $m-gray-l4; -} - .login-register { @include box-sizing(border-box); @include outer-container; @@ -178,10 +174,24 @@ $sm-btn-linkedin: #0077b5; .login-form { margin-bottom: $baseline; + + &:focus { + outline: none; + } } .password-reset-form { padding-bottom: 25px; + + &:focus { + outline: none; + } + } + + .register-form { + &:focus { + outline: none; + } } %bold-label { diff --git a/lms/templates/student_account/login.underscore b/lms/templates/student_account/login.underscore index 6caec32cfb..3fb50938d0 100644 --- a/lms/templates/student_account/login.underscore +++ b/lms/templates/student_account/login.underscore @@ -20,7 +20,7 @@ -
+

diff --git a/lms/templates/student_account/password_reset.underscore b/lms/templates/student_account/password_reset.underscore index ba58240a71..bbb20b1143 100644 --- a/lms/templates/student_account/password_reset.underscore +++ b/lms/templates/student_account/password_reset.underscore @@ -3,7 +3,7 @@

    - +

    diff --git a/lms/templates/student_account/register.underscore b/lms/templates/student_account/register.underscore index f1519e7bfd..fa75fbab85 100644 --- a/lms/templates/student_account/register.underscore +++ b/lms/templates/student_account/register.underscore @@ -3,7 +3,7 @@

      - + <% if (context.currentProvider) { %>