Merge branch 'MDL-68761-master' of git://github.com/bmbrands/moodle

This commit is contained in:
Jake Dallimore 2020-06-05 10:23:13 +08:00
commit 4925924f0f
2 changed files with 10 additions and 9 deletions

View file

@ -105,10 +105,12 @@ abstract class qtype_multichoice_renderer_base extends qtype_with_combined_feedb
$radiobuttons[] = $hidden . html_writer::empty_tag('input', $inputattributes) .
html_writer::tag('label',
html_writer::span($this->number_in_style($value, $question->answernumbering), 'answernumber') .
$question->make_html_inline($question->format_text(
html_writer::tag('div',
$question->format_text(
$ans->answer, $ans->answerformat,
$qa, 'question', 'answer', $ansid)),
array('for' => $inputattributes['id'], 'class' => 'ml-1'));
$qa, 'question', 'answer', $ansid),
array('class' => 'flex-fill ml-1')),
array('for' => $inputattributes['id'], 'class' => 'd-flex w-100'));
// Param $options->suppresschoicefeedback is a hack specific to the
// oumultiresponse question type. It would be good to refactor to

View file

@ -6,8 +6,9 @@
.que.multichoice .answer div.r0,
.que.multichoice .answer div.r1 {
padding: 0.3em 0 0.3em 25px;
text-indent: -25px;
display: flex;
margin: 0.25rem 0;
align-items: flex-start;
}
.que.multichoice .answer div.r0 label,
@ -21,9 +22,7 @@
.que.multichoice .answer div.r0 input,
.que.multichoice .answer div.r1 input {
margin: 0 5px;
padding: 0;
width: 15px;
margin: 0.4rem 0.5rem;
}
/* Editing form. */