Skip to content

Commit 06015a9

Browse files
Replace deprecated margin classes for Bootstrap 5
1 parent 027c6e5 commit 06015a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

combinable/multichoice/renderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function subquestion(question_attempt $qa,
7575
}
7676

7777
$choice = html_writer::div($question->format_text($ans->answer, $ans->answerformat, $qa,
78-
'question', 'answer', $ansid), 'flex-fill ml-1');
78+
'question', 'answer', $ansid), 'flex-fill ms-1');
7979
$rbuttons[] = html_writer::empty_tag('input', $inputattributes + $commonattributes) .
8080
html_writer::div(html_writer::span(\qtype_combined\utils::number_in_style($value, $question->answernumbering),
8181
'answernumber') . $choice, 'd-flex w-auto',
@@ -91,7 +91,7 @@ public function subquestion(question_attempt $qa,
9191

9292
$class = 'r' . ($value % 2);
9393
if ($options->correctness && $isselected) {
94-
$feedbackimg[] = html_writer::span($this->feedback_image($ans->fraction), 'ml-1');
94+
$feedbackimg[] = html_writer::span($this->feedback_image($ans->fraction), 'ms-1');
9595
$class .= ' ' . $this->feedback_class($ans->fraction);
9696
} else {
9797
$feedbackimg[] = '';

edit_combined_form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function definition_inner($mform) {
8989
function($placeholder) {
9090
return html_writer::empty_tag('input', ['type' => 'text', 'readonly' => 'readonly', 'size' => '26',
9191
'value' => $placeholder, 'onfocus' => 'this.select()',
92-
'class' => 'form-control-plaintext d-inline-block qtype_combined_placeholder mr-3']);
92+
'class' => 'form-control-plaintext d-inline-block qtype_combined_placeholder me-3']);
9393
}, qtype_combined_type_manager::get_example_placeholders());
9494
$subq = $mform->createElement('static', 'subq', get_string('subquestiontypes', 'qtype_combined'),
9595
implode("\n", $placeholders));

0 commit comments

Comments
 (0)