Skip to content

Commit

Permalink
SAK-37749 Lessonbuilder accessibility collapsible sections cannot be …
Browse files Browse the repository at this point in the history
…opened with keyboard
  • Loading branch information
i-a-m-s-k committed Oct 15, 2024
1 parent 2e37c64 commit 33c428e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lessonbuilder/tool/src/webapp/js/show-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@ $(document).ready(function () {
}
});

//Toggle collapsible section
$(".sectionHeader").attr("tabindex", "0").on("keydown", function (event) {
if (event.key === "Enter") {
$(this).trigger("click");
}
});

$("#collapsible").on("change", function () {

if (this.checked) {
Expand Down

0 comments on commit 33c428e

Please sign in to comment.