Commit a777101d by Adam

Merge pull request #1032 from edx/adam/a11y

Adam/a11y
parents 2df00412 5d342b1a
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
% if settings.MITX_FEATURES.get('ENABLE_FEEDBACK_SUBMISSION', False): % if settings.MITX_FEATURES.get('ENABLE_FEEDBACK_SUBMISSION', False):
<div class="help-tab"> <div class="help-tab">
<a href="#help-modal" rel="leanModal">${_("Help")}</a> <a href="#help-modal" rel="leanModal" role="button">${_("Help")}</a>
</div> </div>
<section id="help-modal" class="modal" aria-hidden="true"> <section id="help-modal" class="modal" aria-hidden="true" role="dialog" aria-label='${_("{platform_name} Help").format(platform_name=settings.PLATFORM_NAME)}'>
<div class="inner-wrapper" id="help_wrapper"> <div class="inner-wrapper" id="help_wrapper">
## TODO: find a way to refactor this ## TODO: find a way to refactor this
<a href="#" role="button" class="close-modal" tabindex="0" title="${_('Close Modal')}">&#10005;</a> <a href="#" role="button" class="close-modal" tabindex="0" title="${_('Close Modal')}">&#10005;</a>
...@@ -60,16 +60,16 @@ discussion_link = get_discussion_link(course) if course else None ...@@ -60,16 +60,16 @@ discussion_link = get_discussion_link(course) if course else None
<form id="feedback_form" class="feedback_form" method="post" data-remote="true" action="/submit_feedback"> <form id="feedback_form" class="feedback_form" method="post" data-remote="true" action="/submit_feedback">
<div id="feedback_error" class="modal-form-error" tabindex="-1"></div> <div id="feedback_error" class="modal-form-error" tabindex="-1"></div>
% if not user.is_authenticated(): % if not user.is_authenticated():
<label data-field="name">${_('Name*')}</label> <label data-field="name" for="feedback_form_name">${_('Name*')}</label>
<input name="name" type="text"> <input name="name" type="text" id="feedback_form_email" aria-required="true">
<label data-field="email">${_('E-mail*')}</label> <label data-field="email" for="feedback_form_email">${_('E-mail*')}</label>
<input name="email" type="text"> <input name="email" type="text" id="feedback_form_email" aria-required="true">
% endif % endif
<label data-field="subject">${_('Briefly describe your issue*')}</label> <label data-field="subject" for="feedback_form_subject">${_('Briefly describe your issue*')}</label>
<input name="subject" type="text"> <input name="subject" type="text" id="feedback_form_subject" aria-required="true">
<label data-field="details">${_('Tell us the details*')} <label data-field="details" for="feedback_form_details">${_('Tell us the details*')}
<span class="tip">${_('Include error messages, steps which lead to the issue, etc')}</span></label> <span class="tip">${_('Include error messages, steps which lead to the issue, etc')}</span></label>
<textarea name="details"></textarea> <textarea name="details" id="feedback_form_details" aria-required="true"></textarea>
<input name="issue_type" type="hidden"> <input name="issue_type" type="hidden">
% if course: % if course:
<input name="course_id" type="hidden" value="${course.id | h}"> <input name="course_id" type="hidden" value="${course.id | h}">
......
...@@ -129,13 +129,13 @@ ...@@ -129,13 +129,13 @@
</li> </li>
<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="" placeholder="${_('example: JaneDoe')}" required aria-required="true" /> <input id="username" type="text" name="username" value="" 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="username-tip">${_('Will be shown in any discussions or forums you participate in')}</span>
</li> </li>
<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')}" required aria-required="true" /> <input id="name" type="text" name="name" value="" placeholder="${_('example: Jane Doe')}" required aria-required="true" 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>
</ol> </ol>
......
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