Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-12298 META BUG: Accessibility improvements in Moodle 1.9
  3. MDL-8627

HTML QuickForm displays (some?) disabled elements in a non-accessible way

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.3, 1.9
    • Component/s: Accessibility
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      When a "frozen" (i.e. disabled) input element is displayed with QuickForm, it is not displayed as usual but with an extra disabled="disabled" attibute, as seems logical. This has two drawbacks that I can think of:

      1. Loses uniform appearance with the rest of the GUI, and may even confuse some users.

      2. Is probably less accessible to screen readers, who probably handle the disabled checkbox correctly but simply see text in the current case.

      I propose changing this behavior for the check box and any other element where it is seen. We could do this by further subclassing from HTML QuickForm (for easy maintenance) or hacking QuickForm itself a bit (if upgrading it is going to be very rare).

        Attachments

        1. checkboxes.jpg
          18 kB
          Jon Papaioannou
        2. patch-MDL-8627-form-checkbox-dis_2.diff
          1 kB
          Nick Freear
        3. patch-MDL-8627-form-checkbox-dis.diff
          1 kB
          Nick Freear
        4. patch-MDL-8627-form-radio-dis.diff
          1 kB
          Rod Norfor

          Issue Links

            Activity

              People

              Assignee:
              nfreear Nick Freear
              Reporter:
              pj Jon Papaioannou
              Tester:
              Nobody
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Oct/07