Following the developer's hackfest last year, Amy Grosheck and other started working on http://docs.moodle.org/dev/HTML_Guidelines, which seemed like a good idea. People have often said here that we should have better guidelines to make the HTML in Moodle to be more consistent.
The problem is what happened next. The Moodle HQ frontend team decided to start trying to implement those guidelines, even though they are not really finished, and they have not been discussed much.
And the real problem is that what has actually been done in response to that spec (MDL-40685, MDL-41615) is that they have added lots of additional headings to all the different Modules in Moodle core. (But they have not yet documented what they have done, to explain to third-party module developers how to update their modules in a consistent way.) They have done this by adding lots of separate $OUTPUT->heading() calls in lots of separate *.php files.
I have several problems in this:
- When you are studying a particular activity, e.g. reading a book or forum, or taking a quiz, you know what you are doing. Those headings waste space on every page that would be better taken up by the learning material.
- The information about the current course and activity are already in the page header. (So, if it is desirable to have the current course and activity name marked up as headings in the HTML, for accessibility, just change the markup in the header. It is certainly undesirable for screen-reader uses to have the same text repeated redundantly after the skip to main content link target.)
- The the goal is to be consistent on every page, why has this been implemented has separate calls to $OUTPUT->heading all over the codebase, why was this not just implemented once in a renderer method, guaranteeing that the way this is displayed on every page is consistent, and making it possible for themes to override how this is displayed?
Anyway, that is what going on and why I am concerned. However, you folks know much more about design and what theme developers need that me, so perhaps you tell me to stop worrying; or you can confirm my worries and help to propose a better solution before it is too late. Thanks.