MDL-71603 editor_atto: Focus on the toggled row
authorShamim Rezaie <shamim@moodle.com>
Sat, 26 Jun 2021 13:43:30 +0000 (23:43 +1000)
committerShamim Rezaie <shamim@moodle.com>
Wed, 28 Jul 2021 05:43:59 +0000 (15:43 +1000)
commit7029fa056c23ef79c87500b05e5a49b8dc5a7326
tree0a175dba91f1ec6044b2d79dfdb1c75666481047
parent90b3d575e3bfb1aadfe2a9fdda11cf5eb8cd19c9
MDL-71603 editor_atto: Focus on the toggled row

quoted from
https://www.accessibility-developer-guide.com/examples/sensible-aria-usage/expanded/

As a general rule, the toggled element should be right below the toggle
button, so screen readers will find it easily. If that is not the case,
then the focus should be placed inside the element upon toggling it
visible, and back to the initial element upon toggling it invisible.
12 files changed:
lib/editor/atto/plugins/collapse/yui/build/moodle-atto_collapse-button/moodle-atto_collapse-button-debug.js
lib/editor/atto/plugins/collapse/yui/build/moodle-atto_collapse-button/moodle-atto_collapse-button-min.js
lib/editor/atto/plugins/collapse/yui/build/moodle-atto_collapse-button/moodle-atto_collapse-button.js
lib/editor/atto/plugins/collapse/yui/src/button/js/button.js
lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-debug.js
lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js
lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor.js
lib/editor/atto/yui/src/editor/js/toolbar-keyboardnav.js
theme/boost/scss/moodle/atto.scss
theme/boost/scss/moodle/core.scss
theme/boost/style/moodle.css
theme/classic/style/moodle.css