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

Inaccessible quiz navigation: definition of the problem + solution

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.3.4
    • Accessibility, Quiz
    • MOODLE_23_STABLE

      NB: All of the tracker issues, posted by 'accessible_for_vip', are based on the theme 'Accessible for VIP' (https://moodle.org/plugins/view.php?plugin=theme_accessible_for_vip) which is developed for people who are blind or have a low vision. All of the (code)solutions are based on the files which belong to this specific theme and are only usable with this theme at this moment (but it is also possible to include the solution in general source code).

      When you are in a quiz, the navigation on the left side of the page is not a list of links. So, with a screenreader it is impossible to read the links in a structured way and the numbers for the navigation are not marked as items of a list. When you put the links in a list (<ul><li>...linkitem...</li></ul>, it is possible to find the list of numbers with a screenreader by pressing the quick navigation button for lists.

      To improve the accessibility of the numbers for the quiz navigation, we have changed the 'mod/quiz/renderer.php' file, which is shown below (for the theme: theme/accessible_for_ vip/renderers.php):

      $output .= html_writer::start_tag('div', array('class' => 'qn_buttons'));
      $output .= html_writer::start_tag('ul', array('class' => 'list'));
      foreach ($panel->get_question_buttons() as $button) {
      	$output .= html_writer::tag('li', $this->render($button));
      }
      $output .= html_writer::end_tag('ul');
      $output .= html_writer::end_tag('div');
      

            Unassigned Unassigned
            accessible_for_vip Larissa Klaassen
            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.