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

Refactor hard-coded h2 header in the course overview block

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 3.1.3, 3.2
    • Accessibility, Blocks

      The course overview block wraps each course title in an h2 header. This is hard-coded in the renderer. This leads to the course name text being very large on the page (see e.g. https://moodle.org/mod/forum/discuss.php?d=316164). It's also become an accessibility problem on Boost. On Boost all block instance headers are h3s. With the hard-coded h2s you get a hierarchical structure on the dashboard in which h2s are nested inside an h3.

      Inasmuch as the content of this block is actually a list of courses (with information within) I think you could make an argument for reimplementing this as an unordered list. Failing that, the headers should be demoted so that the header hierarchy is semantically valid.

            cfulton Charles Fulton
            cfulton Charles Fulton
            Ankit Agarwal Ankit Agarwal
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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