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

adding a presentation role to participant table

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Not a bug
    • 3.3.2
    • None
    • Accessibility, Enrolments
    • None
    • MOODLE_33_STABLE

    Description

      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;
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tazoeur Guillaume Latour
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: