Skip to content

Commit

Permalink
add tabs role pattern to question set
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyodonnelld2l committed Dec 9, 2024
1 parent 23b97ec commit a8a6ece
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/questionset.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ H5P.QuestionSet = function (options, contentId, contentData) {
for (let i=0; i<params.questions.length; i++) {
$('<div>', {
class: 'question-container',
role: 'tabpanel',
appendTo: self.$questionsContainer
});
}
Expand All @@ -323,6 +324,7 @@ H5P.QuestionSet = function (options, contentId, contentData) {
if (params.progressType == "dots") {
self.$dotsContainer = $('<ul>', {
class: 'dots-container',
role: 'tablist',
appendTo: self.$progressBar
});

Expand All @@ -340,7 +342,7 @@ H5P.QuestionSet = function (options, contentId, contentData) {
'" ' +
'tabindex="-1" ' +
(params.disableBackwardsNavigation ? 'aria-disabled="true"' : '') +
'></a>',
' role="tab"></a>',
appendTo: self.$dotsContainer
})
}
Expand Down

0 comments on commit a8a6ece

Please sign in to comment.