[AMOS commit] MDL-85858 mod_scorm: Fix Table of Contents toggle button's accessibility Committed into Git: 2025-11-27 11:24 UTC

[AMOS commit] MDL-85858 mod_scorm: Fix Table of Contents toggle button's accessibility Committed into Git: 2025-11-27 11:24 UTC

por AMOS bot -
Número de respostas: 0
Author: Jun Pataleta
MDL-85858 mod_scorm: Fix Table of Contents toggle button's accessibility
* Set proper label via `aria-label`.
* Instead of changing the button's label to 'Show'/'Hide', set the
button's `aria-expanded` attribute accordingly.
* Remove unnecessary event handling for the toggle button when pressing
Enter or Space key. This is already natively supported and triggers
the click event.
* Adjust Behat tests accordingly.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=c6e762b2435042c996aeb5b7fee342d981198911
http://github.com/moodle/moodle/commit/c6e762b2435042c996aeb5b7fee342d981198911

+ 4.5 en [toggletableofcontents,mod_scorm]