MDL-71669 atto_table: Set appropriate ARIA roles for table button
commita26f14d314f7bcab1f7a2410403a3fffe508d275
authorJun Pataleta <jun@moodle.com>
Tue, 1 Jun 2021 04:50:24 +0000 (1 12:50 +0800)
committerJun Pataleta <jun@moodle.com>
Wed, 23 Jun 2021 05:13:08 +0000 (23 13:13 +0800)
tree85ccf05a37b0eb413e4962f3b9716b72c0362d91
parent17d75afab76f4876a2d93d2fe5dabcdd94e4a473
MDL-71669 atto_table: Set appropriate ARIA roles for table button

The table button can become a menu button when the cursor's position
in the editor is within a table. So we'd need to update the button with
ARIA attributes appropriate for a menu button.
This is best done when the button's highlight gets toggled, so we're
adding an event listener for when this happens and add/remove the ARIA
attributes accordingly.
lib/editor/atto/plugins/table/yui/build/moodle-atto_table-button/moodle-atto_table-button-debug.js
lib/editor/atto/plugins/table/yui/build/moodle-atto_table-button/moodle-atto_table-button-min.js
lib/editor/atto/plugins/table/yui/build/moodle-atto_table-button/moodle-atto_table-button.js
lib/editor/atto/plugins/table/yui/src/button/js/button.js