Commit 39c61721 by Brian Talbot

Merge pull request #1059 from edx/talbs/fix-a11y-accounts

Accessibility: Account-based Template Follow-up
parents 43c73b2d 89b74bd6
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
margin-bottom: $baseline; margin-bottom: $baseline;
} }
fieldset { .group-form {
margin: 0; margin: 0;
padding-top: 0; padding-top: 0;
padding-bottom: $baseline; padding-bottom: $baseline;
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<section class="introduction"> <section class="introduction">
<header> <header>
<h1 class="sr">${_("PLEASE LOG IN to access your account and courses")}</h1> <h1 class="sr">${_("Please log in to access your account and courses")}</h1>
</header> </header>
</section> </section>
...@@ -114,8 +114,8 @@ ...@@ -114,8 +114,8 @@
${_('Please provide the following information to log into your {platform_name} account. Required fields are noted by <strong class="indicator">bold text and an asterisk (*)</strong>.').format(platform_name=settings.PLATFORM_NAME)} ${_('Please provide the following information to log into your {platform_name} account. Required fields are noted by <strong class="indicator">bold text and an asterisk (*)</strong>.').format(platform_name=settings.PLATFORM_NAME)}
</p> </p>
<fieldset class="group group-form group-form-requiredinformation"> <div class="group group-form group-form-requiredinformation">
<legend class="sr">${_('Required Information')}</legend> <h2 class="sr">${_('Required Information')}</h2>
<ol class="list-input"> <ol class="list-input">
<li class="field required text" id="field-email"> <li class="field required text" id="field-email">
...@@ -131,10 +131,10 @@ ...@@ -131,10 +131,10 @@
</span> </span>
</li> </li>
</ol> </ol>
</fieldset> </div>
<fieldset class="group group-form group-form-secondary group-form-accountpreferences"> <div class="group group-form group-form-secondary group-form-accountpreferences">
<legend class="sr">${_('Account Preferences')}</legend> <h2 class="sr">${_('Account Preferences')}</h2>
<ol class="list-input"> <ol class="list-input">
<li class="field required checkbox" id="field-remember"> <li class="field required checkbox" id="field-remember">
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
<label for="remember-yes">${_('Remember me')}</label> <label for="remember-yes">${_('Remember me')}</label>
</li> </li>
</ol> </ol>
</fieldset> </div>
% if course_id and enrollment_action: % if course_id and enrollment_action:
<input type="hidden" name="enrollment_action" value="${enrollment_action | h}" /> <input type="hidden" name="enrollment_action" value="${enrollment_action | h}" />
......
...@@ -113,8 +113,8 @@ ...@@ -113,8 +113,8 @@
${_('Required fields are noted by <strong class="indicator">bold text and an asterisk (*)</strong>.')} ${_('Required fields are noted by <strong class="indicator">bold text and an asterisk (*)</strong>.')}
</p> </p>
<fieldset class="group group-form group-form-requiredinformation"> <div class="group group-form group-form-requiredinformation">
<legend class="sr">${_('Required Information')}</legend> <h2 class="sr">${_('Required Information')}</h2>
% if has_extauth_info is UNDEFINED: % if has_extauth_info is UNDEFINED:
...@@ -159,16 +159,16 @@ ...@@ -159,16 +159,16 @@
<li class="field required text" id="field-username"> <li class="field required text" id="field-username">
<label for="username">${_('Public Username')}</label> <label for="username">${_('Public Username')}</label>
<input id="username" type="text" name="username" value="${extauth_username}" placeholder="${_('example: JaneDoe')}" required aria-required="true" /> <input id="username" type="text" name="username" value="${extauth_username}" placeholder="${_('example: JaneDoe')}" required aria-required="true" aria-describedby="username-tip" />
<span class="tip tip-input">${_('Will be shown in any discussions or forums you participate in')}</span> <span class="tip tip-input" id="id="username-tip>${_('Will be shown in any discussions or forums you participate in')}</span>
</li> </li>
% if ask_for_fullname: % if ask_for_fullname:
<li class="field required text" id="field-name"> <li class="field required text" id="field-name">
<label for="name">${_('Full Name')}</label> <label for="name">${_('Full Name')}</label>
<input id="name" type="text" name="name" value="" placeholder="$_('example: Jane Doe')}" /> <input id="name" type="text" name="name" value="" placeholder="$_('example: Jane Doe')}" aria-describedby="name-tip" />
<span class="tip tip-input">${_("Needed for any certificates you may earn <strong>(cannot be changed later)</strong>")}</span> <span class="tip tip-input" id="name-tip">${_("Needed for any certificates you may earn <strong>(cannot be changed later)</strong>")}</span>
</li> </li>
% endif % endif
...@@ -176,10 +176,10 @@ ...@@ -176,10 +176,10 @@
</ol> </ol>
% endif % endif
</fieldset> </div>
<fieldset class="group group-form group-form-secondary group-form-personalinformation"> <div class="group group-form group-form-secondary group-form-personalinformation">
<legend class="sr">${_("Optional Personal Information")}</legend> <h2 class="sr">${_("Optional Personal Information")}</h2>
<ol class="list-input"> <ol class="list-input">
<li class="field-group"> <li class="field-group">
...@@ -214,10 +214,10 @@ ...@@ -214,10 +214,10 @@
</div> </div>
</li> </li>
</ol> </ol>
</fieldset> </div>
<fieldset class="group group-form group-form-personalinformation2"> <div class="group group-form group-form-personalinformation2">
<legend class="sr">${_("Optional Personal Information")}</legend> <h2 class="sr">${_("Optional Personal Information")}</h2>
<ol class="list-input"> <ol class="list-input">
<li class="field text" id="field-address-mailing"> <li class="field text" id="field-address-mailing">
...@@ -230,10 +230,10 @@ ...@@ -230,10 +230,10 @@
<textarea id="goals" name="goals" value=""></textarea> <textarea id="goals" name="goals" value=""></textarea>
</li> </li>
</ol> </ol>
</fieldset> </div>
<fieldset class="group group-form group-form-accountacknowledgements"> <div class="group group-form group-form-accountacknowledgements">
<legend class="sr">${_("Account Acknowledgements")}</legend> <h2 class="sr">${_("Account Acknowledgements")}</h2>
<ol class="list-input"> <ol class="list-input">
<li class="field-group"> <li class="field-group">
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
</div> </div>
</li> </li>
</ol> </ol>
</fieldset> </div>
% if course_id and enrollment_action: % if course_id and enrollment_action:
<input type="hidden" name="enrollment_action" value="${enrollment_action | h}" /> <input type="hidden" name="enrollment_action" value="${enrollment_action | h}" />
......
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