AC-577 login page a11y fixes
This commit is contained in:
@@ -335,7 +335,7 @@
|
|||||||
@extend %t-copy-sub2;
|
@extend %t-copy-sub2;
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 0 ($baseline/2) 0;
|
margin: 0 0 ($baseline/2) 0;
|
||||||
color: $m-gray-l1;
|
color: $base-font-color;
|
||||||
}
|
}
|
||||||
/** FROM _accounts.scss - end **/
|
/** FROM _accounts.scss - end **/
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,9 @@
|
|||||||
<select id="<%= form %>-<%= name %>"
|
<select id="<%= form %>-<%= name %>"
|
||||||
name="<%= name %>"
|
name="<%= name %>"
|
||||||
class="input-inline"
|
class="input-inline"
|
||||||
|
<% if ( instructions ) { %>
|
||||||
aria-describedby="<%= form %>-<%= name %>-desc"
|
aria-describedby="<%= form %>-<%= name %>-desc"
|
||||||
|
<% } %>
|
||||||
<% if ( typeof errorMessages !== 'undefined' ) {
|
<% if ( typeof errorMessages !== 'undefined' ) {
|
||||||
_.each(errorMessages, function( msg, type ) {%>
|
_.each(errorMessages, function( msg, type ) {%>
|
||||||
data-errormsg-<%= type %>="<%= msg %>"
|
data-errormsg-<%= type %>="<%= msg %>"
|
||||||
@@ -27,7 +29,9 @@
|
|||||||
type="<%= type %>"
|
type="<%= type %>"
|
||||||
name="<%= name %>"
|
name="<%= name %>"
|
||||||
class="input-block"
|
class="input-block"
|
||||||
|
<% if ( instructions ) { %>
|
||||||
aria-describedby="<%= form %>-<%= name %>-desc"
|
aria-describedby="<%= form %>-<%= name %>-desc"
|
||||||
|
<% } %>
|
||||||
<% if ( restrictions.min_length ) { %> minlength="<%= restrictions.min_length %>"<% } %>
|
<% if ( restrictions.min_length ) { %> minlength="<%= restrictions.min_length %>"<% } %>
|
||||||
<% if ( restrictions.max_length ) { %> maxlength="<%= restrictions.max_length %>"<% } %>
|
<% if ( restrictions.max_length ) { %> maxlength="<%= restrictions.max_length %>"<% } %>
|
||||||
<% if ( typeof errorMessages !== 'undefined' ) {
|
<% if ( typeof errorMessages !== 'undefined' ) {
|
||||||
@@ -42,7 +46,7 @@
|
|||||||
type="<%= type %>"
|
type="<%= type %>"
|
||||||
name="<%= name %>"
|
name="<%= name %>"
|
||||||
class="input-block <% if ( type === 'checkbox' ) { %>checkbox<% } %>"
|
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.min_length ) { %> minlength="<%= restrictions.min_length %>"<% } %>
|
||||||
<% if ( restrictions.max_length ) { %> maxlength="<%= restrictions.max_length %>"<% } %>
|
<% if ( restrictions.max_length ) { %> maxlength="<%= restrictions.max_length %>"<% } %>
|
||||||
<% if ( required ) { %> aria-required="true" required<% } %>
|
<% if ( required ) { %> aria-required="true" required<% } %>
|
||||||
|
|||||||
Reference in New Issue
Block a user