MDL-79061 course: Create a sr-only mutations logger
commitf59a763929e350146e0836a133dd6aa71797f42a
authorJun Pataleta <jun@moodle.com>
Tue, 5 Dec 2023 03:00:41 +0000 (5 11:00 +0800)
committerJun Pataleta <jun@moodle.com>
Thu, 7 Dec 2023 02:43:47 +0000 (7 10:43 +0800)
tree218606f06f5b5c19e537c80220ee1f975b208cbe
parent39f03ba9c31f0da9aa16d5bfcad4b0fb8a6dae04
MDL-79061 course: Create a sr-only mutations logger

* Create SRLogger that extends from the default Logger class. This
logger outputs the feedback to a sr-only ARIA live region to allow
screen readers to announce the feedback from mutations.
* Update the course editor to use the SRLogger.
course/format/amd/build/local/courseeditor/mutations.min.js
course/format/amd/build/local/courseeditor/mutations.min.js.map
course/format/amd/src/local/courseeditor/mutations.js
lib/amd/build/local/reactive/srlogger.min.js [new file with mode: 0644]
lib/amd/build/local/reactive/srlogger.min.js.map [new file with mode: 0644]
lib/amd/src/local/reactive/srlogger.js [new file with mode: 0644]