Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-60184

adding a presentation role to participant table

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 3.3.2
    • Accessibility, Enrolments
    • 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;
      

            Unassigned Unassigned
            tazoeur Guillaume Latour
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.