Details
-
Type:
Sub-task
-
Status: Closed
-
Priority:
Major
-
Resolution: Not a bug
-
Affects Version/s: 2.1.8, 2.2.5, 2.3.2
-
Fix Version/s: None
-
Component/s: Accessibility, Blocks, Navigation
-
Affected Branches:MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
Description
Issue
Semantics - The expand/collapse buttons, icons and folders should be coded using a <button> element and not a <a> element, as activating them is not leading the user anywhere (as would a link).
Standard Level
WCAG 2 A 1.3.1 http://www.w3.org/TR/WCAG20/#content-structure-separation-programmatic
Impact
Example Link
http://demo.moodle.net/course/view.php?id=625
Group links like course in the settings block show as links and should be buttons due to their purpose to only expand a list of links and not navigate the user to a new page.