-
Bug
-
Resolution: Fixed
-
Minor
-
3.4, 3.5.2, 3.6.6, 3.7.2
-
MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MDL-61121-master-5 -
According to an audit made over Accessibility, violations exist over the assignments as follows:
Affected modules: Graded Assignment
- Ensure custom controls provide proper textual roles and descriptions
- Avoid the sole use of device-dependent event handlers
The "View Full/View Summary" switch control for "Online Text" has not been assigned a role. Screen-reader users will not be aware that this control can be activated, and will not find it when searching by control.
<img class="icon expandsummaryicon expand_assignsubmission_onlinetext_13" alt="View full" title="View full" src=""> |
...
|
<div class="box boxaligncenter full_assignsubmission_onlinetext_13 p-y-1" style="display: none;" hidden="hidden"> |
<img class="icon expandsummaryicon contract_assignsubmission_onlinetext_13" alt="View summary" title="View summary"> |
...
|
</div>
|
The simplest way to resolve the violations for this control would involve
- Wrapping the <img> elements in <a> elements.
- Assign the <a> elements href attributes of "javascript:void(0)"
This would give the elements a role of link and would allow keyboard-only users to focus and activate them.
Update: The "View Full/View Summary" can be found as a teacher or as student when an assignment is created:
Student: Enter the course which has the assignment created, enter the assignment and check over Submission status > Online text
Teacher: Enter the course which has the assignment created, enter the assignment, enter the grade for the assignment
- Ensure data table headers are properly identified
This page contains two tables of two columns each. The leftmost column of each of these tables identify the contents of the cells in the rightmost column, however they are not programatically associated. Screen-reader users will not be immediately aware that the info in the leftmost column identifies the rightmost column.
<table class="generaltable" ...> |
<tbody>
|
<tr class=""> |
<td class="cell c0" style="">Group</td> |
<td class="cell c1 lastcol" style="">Group A</td> |
</tr>
|
<tr class=""> |
<td class="cell c0"> |
Submission status</td>
|
<td class="submissionstatussubmitted cell c1 lastcol" style="">Submitted for grading</td> |
</tr>
|
...
|
</tbody>
|
</table>
|
Wrap the "Grade," Graded On," "Online text" etc. headers in <th> elements and assign their scope to "row"
<th scope="row" ...>Grade</th> |
Update: This table can be seen when an assignment is created and as student, the student enters the assignment and two tables exists:
submission status
Feedback