Merge pull request #12269 from edx/attiya/ECOM-4269-and-4270

Screenreader added to the button "Upgrade to Verified" in LMS Dashboard.
This commit is contained in:
attiyaIshaque
2016-05-10 14:26:07 +05:00
3 changed files with 3 additions and 1 deletions

View File

@@ -1155,5 +1155,5 @@ class DashboardTestXSeriesPrograms(ModuleStoreTestCase, ProgramsApiConfigMixin):
self.assertContains(response, 'XSeries Program Course', 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, self.program_name, count)
self.assertContains(response, self.program_name, count * 2)
self.assertContains(response, 'View XSeries Details', count)

View File

@@ -358,6 +358,7 @@ from student.helpers import (
<i class="action-upgrade-icon"></i>
<span class="wrapper-copy">
<span class="copy" id="upgrade-to-verified">${_("Upgrade to Verified")}</span>
<span class="sr">&nbsp;${_(course_overview.display_name_with_default)}</span>
</span>
</a>
</div>

View File

@@ -28,6 +28,7 @@
%>
<a class="btn ${xseries_btn_class}" href="${program_data['program_marketing_url']}" target="_blank"
data-program-id="${program_data['program_id']}" >
<span class="sr">${program_data['display_name']}</span>
<i class="action-xseries-icon" aria-hidden="true"></i>
${_("View {category} Details").format(category=display_category)}
</a>