Skip to content
Snippets Groups Projects
Commit 171d73a6 authored by Chris Sangwin's avatar Chris Sangwin
Browse files

The method print_collapable_region no longer interacts with MathJax in any...

The method print_collapable_region no longer interacts with MathJax in any kind of sensible way, making the facts impossible to read.
For this reason I've put them into plain <div> tags, with a style which contrasts well with the worked solutions.
parent 5ecac160
No related branches found
No related tags found
No related merge requests found
......@@ -460,8 +460,7 @@ class qtype_stack_renderer extends qtype_renderer {
* @param string $fact the contents of the fact sheet.
*/
public function fact_sheet($name, $fact) {
static $count = 1;
return print_collapsible_region($fact, 'qtype_stack_fact_sheet',
'qtype_stack_fact_sheet' . $count++, $name, '', true, true);
$name = html_writer::tag('h5', $name);
return html_writer::tag('div', $name.$fact, array('class' => 'factsheet'));
}
}
......@@ -67,7 +67,7 @@ abstract class stack_fact_sheets {
}
/**
* This function repaces tags with they HTML value.
* This function replaces tags with the HTML value.
* Note, that at this point we assume we have already validated the text.
* @param string $text the text in which to expand fact sheet tags.
* @param qtype_stack_renderer $renderer (options) the STACK renderer, if you have one.
......
......@@ -160,6 +160,13 @@ body.path-question-type-stack .questionvariables {
body.path-question-type-stack div.questionvariables {
padding-bottom: 0.1em;
}
body.path-question-type-stack .factsheet {
color: #000;
border: 1px solid #000;
background: #eee;
padding: 1em;
}
body.path-question-type-stack .undeployedvariant .singlebutton,
body.path-question-type-stack .undeployedvariant .singlebutton div,
body.path-question-type-stack .undeployedvariant .singlebutton form {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment