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

Accessibility enhancements: Differentiate labels for each Comments field

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Navigate to Workshop Edit settings -> Grading settings
      And set Grading strategy to a grading option
      Save and go back to Assessment form, and check the following items for each of the grading option:
      1. Accumulative grading:

      • 'Grade' label is now 'Grade for Aspect...'
      • 'Comment' label is now 'Comment for Aspect...'

      2. Comments

      • 'Comment' label is now 'Comment for Aspect...'

      3. Number of errors

      • 'Your assessment' label is now 'Your assessment for Assertion...'
      • 'Comment' label is now 'Comment for Assertion...'

      4. Inspect elements and check that input fields of all 4 grading options have a binding to corresponding Aspect/Criteria/Assertion.

      Show
      Navigate to Workshop Edit settings -> Grading settings And set Grading strategy to a grading option Save and go back to Assessment form, and check the following items for each of the grading option: 1. Accumulative grading: 'Grade' label is now 'Grade for Aspect...' 'Comment' label is now 'Comment for Aspect...' 2. Comments 'Comment' label is now 'Comment for Aspect...' 3. Number of errors 'Your assessment' label is now 'Your assessment for Assertion...' 'Comment' label is now 'Comment for Assertion...' 4. Inspect elements and check that input fields of all 4 grading options have a binding to corresponding Aspect/Criteria/Assertion.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull 3.1 Branch:
    • Pull Master Branch:
      MDL-54838-master

      Description

      This improvement has been raised in forum
      Elements inside each Aspect (e.g. Comment, Grade fields) on Assessment form does not properly link to the corresponding Aspect, so screen reader user may find it difficult to complete the Assessment form.
      So these elements' label need to be updated to specify the Aspect that they belong to so that screen reader user know which aspect they comment/grade on.

      The solution will be:

      1. Instead of inserting a placeholder to existing string dimensioncomment, generate new string like: $string['dimensioncommentfor'] = 'Comment for {$a}';
      New strings are needed for the following fields for each grading method:
      Accumulative grading:
      'Grade for {$a}'
      'Comment for {$a}'
      Comments:
      'Comment for {$a}' – the same as comment in Accumulative grading method
      Number of errors:
      'Your assessment for {$a}'
      'Comment for {$a}' – the same as comment in Accumulative grading method

      2. bind the displayed description of the aspect with the input fields. e.g.
      aria-labelledby="id_dimensionhdr__idx_0" aria-describedby="id_dim_1_desc"

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Sep/16