Skip to content

Commit

Permalink
Merge branch 'MDL-77785' of https://github.com/timhunt/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Apr 19, 2023
2 parents 43205a0 + 47ff5c8 commit 07243a3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
6 changes: 4 additions & 2 deletions mod/quiz/classes/output/renderer.php
Expand Up @@ -386,14 +386,16 @@ protected function render_navigation_question_button(navigation_question_button
$qnostring = 'questionnonavinfo';
}

$tooltip = get_string('questionx', 'question', s($button->number)) . ' - ' . $button->statestring;

$a = new stdClass();
$a->number = $button->number;
$a->number = s($button->number);
$a->attributes = implode(' ', $extrainfo);
$tagcontents = html_writer::tag('span', '', ['class' => 'thispageholder']) .
html_writer::tag('span', '', ['class' => 'trafficlight']) .
get_string($qnostring, 'quiz', $a);
$tagattributes = ['class' => implode(' ', $classes), 'id' => $button->id,
'title' => $button->statestring, 'data-quiz-page' => $button->page];
'title' => $tooltip, 'data-quiz-page' => $button->page];

if ($button->url) {
return html_writer::link($button->url, $tagcontents, $tagattributes);
Expand Down
3 changes: 2 additions & 1 deletion theme/boost/scss/moodle/modules.scss
Expand Up @@ -1248,7 +1248,8 @@ img.userpicture {
width: 30px;
border-radius: 3px;
border: 0;
overflow: visible;
overflow: hidden;
white-space: nowrap;
margin: 0 6px 6px 0;
}

Expand Down
1 change: 1 addition & 0 deletions theme/boost/scss/moodle/question.scss
Expand Up @@ -269,6 +269,7 @@ body.path-question-type {
.que span.qno {
font-size: 1.5em;
font-weight: bold;
word-break: break-word;
}

.que .info > div {
Expand Down
4 changes: 3 additions & 1 deletion theme/boost/style/moodle.css
Expand Up @@ -31371,6 +31371,7 @@ body.path-question-type .form-group .col-form-label.sr-only:not(legend):not([for
.que span.qno {
font-size: 1.5em;
font-weight: bold;
word-break: break-word;
}

.que .info > div {
Expand Down Expand Up @@ -33735,7 +33736,8 @@ img.userpicture {
width: 30px;
border-radius: 3px;
border: 0;
overflow: visible;
overflow: hidden;
white-space: nowrap;
margin: 0 6px 6px 0;
}
.path-mod-quiz #mod_quiz_navblock span.qnbutton {
Expand Down
4 changes: 3 additions & 1 deletion theme/classic/style/moodle.css
Expand Up @@ -31371,6 +31371,7 @@ body.path-question-type .form-group .col-form-label.sr-only:not(legend):not([for
.que span.qno {
font-size: 1.5em;
font-weight: bold;
word-break: break-word;
}

.que .info > div {
Expand Down Expand Up @@ -33735,7 +33736,8 @@ img.userpicture {
width: 30px;
border-radius: 3px;
border: 0;
overflow: visible;
overflow: hidden;
white-space: nowrap;
margin: 0 6px 6px 0;
}
.path-mod-quiz #mod_quiz_navblock span.qnbutton {
Expand Down

0 comments on commit 07243a3

Please sign in to comment.