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

Multi-choice and True-false labelling need to respect showstandardinstruction setting

    XMLWordPrintable

Details

    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-77766-401-2
    • MDL-77766-402-2
    • MDL-77766-master-2
    • Hide
      1. Create a course
      2. Create a quiz
      3. Go to the quiz and create:
        • two multiple choice questions. One with "Show standard instructions" set to Yes, and the other one set to No.
        • (master, 402, 401 only) two true/false questions. One with "Show standard instructions" set to Yes, and the other one set to No.
      4. Preview the quiz.
      5. Confirm that the questions with "Show standard instructions" set to Yes display "Select one" (or "Select one or more" for multiple choice with multiple answers) before the answer options.
      6. Confirm that the questions with "Show standard instructions" set to No do not display "Select one" (or "Select one or more").
      7. Inspect the fieldsets containing the answer options using the browser's dev tools.
      8. Confirm that the fieldset has a legend element that contains the "Select one" (or "Select one or more") standard instruction for the questions where "Show standard instructions" is set to Yes.
      9. Confirm that the fieldset has a visually hidden legend element "Question x Answer" for the questions where "Show standard instructions" is set to "No".
      10. Evaluate the page using an accessibility checker tool (e.g. axe DevTools browser extension)
      11. Confirm that there are no accessibility errors related to the answer options for the multiple-choice and true/false questions.
      Show
      Create a course Create a quiz Go to the quiz and create: two multiple choice questions. One with "Show standard instructions" set to Yes, and the other one set to No. (master, 402, 401 only) two true/false questions. One with "Show standard instructions" set to Yes, and the other one set to No. Preview the quiz. Confirm that the questions with "Show standard instructions" set to Yes display "Select one" (or "Select one or more" for multiple choice with multiple answers) before the answer options. Confirm that the questions with "Show standard instructions" set to No do not display "Select one" (or "Select one or more"). Inspect the fieldsets containing the answer options using the browser's dev tools. Confirm that the fieldset has a legend element that contains the "Select one" (or "Select one or more") standard instruction for the questions where "Show standard instructions" is set to Yes. Confirm that the fieldset has a visually hidden legend element "Question x Answer" for the questions where "Show standard instructions" is set to "No". Evaluate the page using an accessibility checker tool (e.g. axe DevTools browser extension) Confirm that there are no accessibility errors related to the answer options for the multiple-choice and true/false questions.

    Description

      In MDL-76849, the answer options for Multiple-choice or True or False question types were grouped into fieldset tags and the "Select one" / "Select one or more" label has been visually hidden but made available for screen reader users when "Show standard instructions" is not set.

      When "Show standard instructions" is not set, the standard instructions don't need to be rendered at all given that question creators can provide their own instructions.

      What we have currently:

      • Show standard instructions is on
        • The answer options group is labelled by a legend tag which contains "Select one" / "Select one or more". This is correct.
      • Show standard instructions is off
        • The answer options group is labelled by a sr-only legend tag which contains "Select one" / "Select one or more". This is incorrect. The "Select one" / "Select one or more" instructions should not be present at all.

      We need to revisit this and fix in a way that it satisfies the requirements when the "Show standards instructions" is turned off while maintaining accessibility.

      Attachments

        Issue Links

          Activity

            People

              jpataleta Jun Pataleta
              jpataleta Jun Pataleta
              Tim Hunt Tim Hunt
              Paul Holden Paul Holden
              Ron Carl Alfon Yu Ron Carl Alfon Yu
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 40 minutes
                  4h 40m

                  Clockify

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