MDL-77856 qtype_multianswer: Use Bootstrap Popover for subq feedback
commitb3eb94230142e1e28de260e1dd719bd933f3d15a
authorJun Pataleta <jun@moodle.com>
Mon, 3 Apr 2023 16:03:00 +0000 (4 00:03 +0800)
committerJun Pataleta <jun@moodle.com>
Wed, 5 Apr 2023 21:35:19 +0000 (6 05:35 +0800)
tree4bff347b394f9002d0de881c2e86ab7fe73fbbf7
parent8400206468fc3c3a17a343babd0357af36492312
MDL-77856 qtype_multianswer: Use Bootstrap Popover for subq feedback

The YUI Overlay widget encloses the subquestion feedback in a div
which causes a div element to be enclosed in the subquestion span. This
leads to an accessibility issue in terms of HTML parsing as inline
elements (span) should not contain block elements (div)
The YUI Overlay widget is also not accessible as it does not really hide
the overlay contents via aria-hidden when the overlay is not being
shown. It's better if we stop using this and use Bootstrap's
popover component which is more accessible by default.

This patch also removes module.js for the qtype_multianswer plugin as
it only contains codes related to rendering the feedback contents in the
YUI overlay widget which is no longer necessary.
question/type/multianswer/module.js [deleted file]
question/type/multianswer/renderer.php
question/type/multianswer/tests/walkthrough_test.php