Commit cb6f92a5 by Chris Committed by GitHub

Merge pull request #13379 from edx/clrux/ac-577-login-page

AC-577 login form contrast and invalid aria cleanup
parents 6d8c0759 165302e0
......@@ -335,7 +335,7 @@
@extend %t-copy-sub2;
display: block;
margin: 0 0 ($baseline/2) 0;
color: $m-gray-l1;
color: $base-font-color;
}
/** FROM _accounts.scss - end **/
}
......
......@@ -10,7 +10,9 @@
<select id="<%= form %>-<%= name %>"
name="<%= name %>"
class="input-inline"
<% if ( instructions ) { %>
aria-describedby="<%= form %>-<%= name %>-desc"
<% } %>
<% if ( typeof errorMessages !== 'undefined' ) {
_.each(errorMessages, function( msg, type ) {%>
data-errormsg-<%= type %>="<%= msg %>"
......@@ -27,7 +29,9 @@
type="<%= type %>"
name="<%= name %>"
class="input-block"
<% if ( instructions ) { %>
aria-describedby="<%= form %>-<%= name %>-desc"
<% } %>
<% if ( restrictions.min_length ) { %> minlength="<%= restrictions.min_length %>"<% } %>
<% if ( restrictions.max_length ) { %> maxlength="<%= restrictions.max_length %>"<% } %>
<% if ( typeof errorMessages !== 'undefined' ) {
......@@ -42,7 +46,7 @@
type="<%= type %>"
name="<%= name %>"
class="input-block <% if ( type === 'checkbox' ) { %>checkbox<% } %>"
<% if ( type !== 'password' ) { %> aria-describedby="<%= form %>-<%= name %>-desc" <% } %>
<% if ( instructions ) { %> aria-describedby="<%= form %>-<%= name %>-desc" <% } %>
<% if ( restrictions.min_length ) { %> minlength="<%= restrictions.min_length %>"<% } %>
<% if ( restrictions.max_length ) { %> maxlength="<%= restrictions.max_length %>"<% } %>
<% if ( required ) { %> aria-required="true" required<% } %>
......
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