-
Improvement
-
Resolution: Fixed
-
Minor
-
2.6.10, 2.7.7, 2.8.5, 2.9
-
MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
-
MOODLE_30_STABLE
-
MDL-49811_master -
Currently, the skip links will change the display of the page to the next element in line. For example, "Skip to main content" will scroll the page to where the main content is visible at the top of the screen.
First issue: Skip link functionality does not recognize the presence of an element with class="navbar" and position: fixed; property. This causes the targeted element to appear at the top of the page, which will be cut off by the floating navbar.
While this is not a deal-breaker, there is more. The purpose of these skip links is to allow keyboard access to users. However, the "Skip links" do not maintain focus. For example, when tabbing through the page and pressing enter on "Skip to main content", the page will scroll to that element (with the above issue). When the user attempts to continue navigating through the page with tab, the focus has been lost and they will be placed back at the top of the page. This therefore makes the skip links useless to keyboard-only users.
Second issue: Make "Skip links" change focus as well as scroll.