Commit a001737d by AlasdairSwan

Merge pull request #6827 from edx/alasdair/logistration-field-focus-fix

ECOM-1002 fixed issue of grey background for logistration page. Also fix...
parents f07cd749 1562fdbb
...@@ -119,6 +119,9 @@ var edx = edx || {}; ...@@ -119,6 +119,9 @@ var edx = edx || {};
// Listen for 'password-email-sent' event to toggle sub-views // Listen for 'password-email-sent' event to toggle sub-views
this.listenTo( this.subview.passwordHelp, 'password-email-sent', this.passwordEmailSent ); this.listenTo( this.subview.passwordHelp, 'password-email-sent', this.passwordEmailSent );
// Focus on the form
$('.password-reset-form').focus();
}, },
register: function( data ) { register: function( data ) {
...@@ -180,6 +183,9 @@ var edx = edx || {}; ...@@ -180,6 +183,9 @@ var edx = edx || {};
// Update url without reloading page // Update url without reloading page
History.pushState( null, document.title, '/account/' + type + '/' + queryStr ); History.pushState( null, document.title, '/account/' + type + '/' + queryStr );
analytics.page( 'login_and_registration', type ); analytics.page( 'login_and_registration', type );
// Focus on the form
document.getElementById(type).focus();
}, },
/** /**
......
...@@ -98,7 +98,6 @@ ...@@ -98,7 +98,6 @@
// layout // layout
.content-wrapper { .content-wrapper {
background: $account-content-wrapper-bg;
padding-bottom: 0; padding-bottom: 0;
} }
......
...@@ -22,10 +22,6 @@ $sm-btn-google: #dd4b39; ...@@ -22,10 +22,6 @@ $sm-btn-google: #dd4b39;
$sm-btn-facebook: #3b5998; $sm-btn-facebook: #3b5998;
$sm-btn-linkedin: #0077b5; $sm-btn-linkedin: #0077b5;
.section-bkg-wrapper {
background: $m-gray-l4;
}
.login-register { .login-register {
@include box-sizing(border-box); @include box-sizing(border-box);
@include outer-container; @include outer-container;
...@@ -178,10 +174,24 @@ $sm-btn-linkedin: #0077b5; ...@@ -178,10 +174,24 @@ $sm-btn-linkedin: #0077b5;
.login-form { .login-form {
margin-bottom: $baseline; margin-bottom: $baseline;
&:focus {
outline: none;
}
} }
.password-reset-form { .password-reset-form {
padding-bottom: 25px; padding-bottom: 25px;
&:focus {
outline: none;
}
}
.register-form {
&:focus {
outline: none;
}
} }
%bold-label { %bold-label {
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<ul class="message-copy"></ul> <ul class="message-copy"></ul>
</div> </div>
<form id="login" class="login-form"> <form id="login" class="login-form" tabindex="-1">
<div class="section-title lines"> <div class="section-title lines">
<h2> <h2>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<ul class="message-copy"></ul> <ul class="message-copy"></ul>
</div> </div>
<form id="password-reset" class="password-reset-form"> <form id="password-reset" class="password-reset-form" tabindex="-1">
<div class="section-title lines"> <div class="section-title lines">
<h2> <h2>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<ul class="message-copy"></ul> <ul class="message-copy"></ul>
</div> </div>
<form id="register" autocomplete="off"> <form id="register" class="register-form" autocomplete="off" tabindex="-1">
<% if (context.currentProvider) { %> <% if (context.currentProvider) { %>
<div class="status" aria-hidden="false"> <div class="status" aria-hidden="false">
<p class="message-copy"> <p class="message-copy">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment