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

Accessibility issues with missing form labels when adding essay question

XMLWordPrintable

      See the following from Axe (same can be produced using WAVE):

      Ensure every form element has a label
      more information Link opens in a new window
      Element Location:
       
      #id_minwordlimit
       
      <input type="text" class="form-control " name="minwordlimit" id="id_minwordlimit" value="" size="6" maxlength="6" disabled="disabled">
       
      To solve this problem, you need to fix at least (1) of the following:
       
          Form element does not have an implicit (wrapped) <label>
          Form element does not have an explicit <label>
          aria-label attribute does not exist or is empty
          aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
          Element has no title attribute
          Element has no placeholder attribute
          Element's default semantics were not overridden with role="none" or role="presentation"
      

      Applies to both the minimum/maximum word limit fields. Add appropriate label to each to make them accessible

      Edit I also found the "Accepted file types" element behaves weirdly on the form, but that's already reported separately at MDL-61823

        1. Screenshot from 2025-03-06 08-50-04.png
          Screenshot from 2025-03-06 08-50-04.png
          171 kB
        2. 84752 peer review - 404 test.png
          84752 peer review - 404 test.png
          155 kB
        3. 84752 peer review - 405 test.png
          84752 peer review - 405 test.png
          148 kB
        4. 84752 peer review - main test.png
          84752 peer review - main test.png
          143 kB
        5. labels displayed.png
          labels displayed.png
          36 kB
        6. Screenshot 2025-06-11 at 22-22-14 Editing an Essay question Moodle Master.png
          Screenshot 2025-06-11 at 22-22-14 Editing an Essay question Moodle Master.png
          15 kB
        7. confirm2.png
          confirm2.png
          38 kB
        8. confirm1.png
          confirm1.png
          25 kB
        9. confirm3.png
          confirm3.png
          105 kB
        10. confirm4.png
          confirm4.png
          61 kB
        11. confirm6.png
          confirm6.png
          90 kB

            pholden Paul Holden
            pholden Paul Holden
            Andrew Gosali Andrew Gosali
            Jun Pataleta Jun Pataleta
            Stevani Andolo Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 10 minutes
                3h 10m

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