Skip to content

Commit 8d1667d

Browse files
committed
MDLSITE-8074 Fix broken collapsible section
1 parent 6ba5166 commit 8d1667d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

renderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ protected function collapsible_stage_tool($title, $content, $helpicon = '', $exp
283283

284284
$attr['aria-controls'] = html_writer::random_id('collapse_');
285285
$attr['data-bs-toggle'] = 'collapse';
286-
$attr['data-target'] = '#'.$attr['aria-controls'];
286+
$attr['data-bs-target'] = '#'.$attr['aria-controls'];
287287

288288
$output = html_writer::start_div('stagetool '.$extraclasses);
289289
$output .= html_writer::div(

scss/stage.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
.stagetool-title {
1313
font-size: larger;
1414
background: url([[pix:core|t/expanded]]) no-repeat scroll 0 center;
15-
padding-left: 20px;
15+
padding-left: 2rem;
1616
cursor: pointer;
1717
color: $link-color;
1818
text-decoration: $link-decoration;

0 commit comments

Comments
 (0)