Skip to content

Commit

Permalink
set active class and aria-current on the introduction item in the que…
Browse files Browse the repository at this point in the history
…stion list
  • Loading branch information
christianp committed Nov 21, 2023
1 parent 646b288 commit 4393c40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/default/templates/nav-sequence.html
Expand Up @@ -16,8 +16,8 @@ <h1 class="exam-name navmenu-brand" data-bind="text: exam.settings.name, typeset
<!-- /ko -->

<ul id="questionList" class="nav navmenu-nav">
<li class="introduction" data-bind="visible: exam.hasIntro">
<a href="#" class="clearfix" role="button" tabindex="0" data-bind="click: Numbas.controls.showIntroduction" data-localise="control.show introduction"></a>
<li class="introduction" data-bind="visible: exam.hasIntro, css: {active: $root.exam().infoPage()=='introduction'}">
<a href="#" class="clearfix" role="button" tabindex="0" data-bind="click: Numbas.controls.showIntroduction, attr: {'aria-current': $root.exam().infoPage()=='introduction' ? 'step' : false}" data-localise="control.show introduction"></a>
</li>
<!-- ko foreach: question_groups -->
<!-- ko if: $root.exam().showQuestionGroupNames -->
Expand Down

0 comments on commit 4393c40

Please sign in to comment.