Commit dbad1881 by attiyaishaque

Screenreader added to the button "Upgrade to Verified" and "View Xseries Details" in LMS Dashboard.

parent 632c38f6
...@@ -1155,5 +1155,5 @@ class DashboardTestXSeriesPrograms(ModuleStoreTestCase, ProgramsApiConfigMixin): ...@@ -1155,5 +1155,5 @@ class DashboardTestXSeriesPrograms(ModuleStoreTestCase, ProgramsApiConfigMixin):
self.assertContains(response, 'XSeries Program Course', count) self.assertContains(response, 'XSeries Program Course', count)
self.assertContains(response, 'XSeries Program: Interested in more courses in this subject?', count) self.assertContains(response, 'XSeries Program: Interested in more courses in this subject?', count)
self.assertContains(response, 'This course is 1 of 3 courses in the', count) self.assertContains(response, 'This course is 1 of 3 courses in the', count)
self.assertContains(response, self.program_name, count) self.assertContains(response, self.program_name, count * 2)
self.assertContains(response, 'View XSeries Details', count) self.assertContains(response, 'View XSeries Details', count)
...@@ -358,6 +358,7 @@ from student.helpers import ( ...@@ -358,6 +358,7 @@ from student.helpers import (
<i class="action-upgrade-icon"></i> <i class="action-upgrade-icon"></i>
<span class="wrapper-copy"> <span class="wrapper-copy">
<span class="copy" id="upgrade-to-verified">${_("Upgrade to Verified")}</span> <span class="copy" id="upgrade-to-verified">${_("Upgrade to Verified")}</span>
<span class="sr">&nbsp;${_(course_overview.display_name_with_default)}</span>
</span> </span>
</a> </a>
</div> </div>
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
%> %>
<a class="btn ${xseries_btn_class}" href="${program_data['program_marketing_url']}" target="_blank" <a class="btn ${xseries_btn_class}" href="${program_data['program_marketing_url']}" target="_blank"
data-program-id="${program_data['program_id']}" > data-program-id="${program_data['program_id']}" >
<span class="sr">${program_data['display_name']}</span>
<i class="action-xseries-icon" aria-hidden="true"></i> <i class="action-xseries-icon" aria-hidden="true"></i>
${_("View {category} Details").format(category=display_category)} ${_("View {category} Details").format(category=display_category)}
</a> </a>
......
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