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

Calendar arrows need aria-hidden="true"

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.9.9, 3.11.2
    • None
    • None
    • MOODLE_311_STABLE, MOODLE_39_STABLE

    Description

      In these three slightly different uses of larrow and rarrow in calendar templates, the arrow should be marked as aria-hidden so that it isn't read out by screen readers.

      calendar/templates/month_navigation.mustache
      38: }} class="arrow_link previous"{{!
      53: }} class="arrow_link next"{{!

      calendar/templates/month_mini.mustache
      50: }} class="arrow_link previous"{{!
      64: }} class="arrow_link next"{{!

      calendar/templates/day_navigation.mustache
      38: }} class="arrow_link previous"{{!
      53: }} class="arrow_link next"{{!

       

      In these specific examples, the browser will then pick up the title text to use as the link text e.g. "next month" see screenshots attached from Firefox developer tools.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bawjaws David Scotson
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: