-
Improvement
-
Resolution: Not a bug
-
Minor
-
None
-
3.3.2
-
None
-
MOODLE_33_STABLE
There is an accessibility improvement that can be done in the Participant page of a course by adding a role="presentation" on the user table.
the way to do it easily is by adding this to the class file of the participant table (user/classes/participant_table.php)
diff --git a/user/classes/participants_table.php b/user/classes/participants_table.php
|
index bc66a9e..7b31a23 100644
|
--- a/user/classes/participants_table.php
|
+++ b/user/classes/participants_table.php
|
@@ -217,6 +217,7 @@ class participants_table extends \table_sql {
|
}
|
|
$this->set_attribute('id', 'participants');
|
+ $this->set_attribute('role', 'presentation');
|
|
// Set the variables we need to use later.
|
$this->currentgroup = $currentgroup;
|