From c73fd11e867206dddd0db2adb761bf1d9aa334a5 Mon Sep 17 00:00:00 2001 From: Syxton Date: Thu, 1 Oct 2015 10:54:23 -0400 Subject: [PATCH] MDL-48947 patch - fix unclickable menu issues remove z-index fix and instead keep the header from gaining the opacity change on hide --- course/format/renderer.php | 6 ++++-- theme/bootstrapbase/less/moodle/course.less | 6 +----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/course/format/renderer.php b/course/format/renderer.php index cb4c081d53feb..9944a75a4e9d6 100644 --- a/course/format/renderer.php +++ b/course/format/renderer.php @@ -216,7 +216,8 @@ protected function section_header($section, $course, $onsectionpage, $sectionret if ($hasnamenotsecpg || $hasnamesecpg) { $classes = ''; } - $o.= $this->output->heading($this->section_title($section, $course), 3, 'sectionname' . $classes); + $sectionname = html_writer::tag('span', $this->section_title($section, $course)); + $o.= $this->output->heading($sectionname, 3, 'sectionname' . $classes); $o.= html_writer::start_tag('div', array('class' => 'summary')); $o.= $this->format_summary_text($section); @@ -790,7 +791,8 @@ public function print_single_section_page($course, $sections, $mods, $modnames, if (!$thissection->visible) { $classes .= ' dimmed_text'; } - $sectiontitle .= $this->output->heading(get_section_name($course, $displaysection), 3, $classes); + $sectionname = html_writer::tag('span', get_section_name($course, $displaysection)); + $sectiontitle .= $this->output->heading($sectionname, 3, $classes); $sectiontitle .= html_writer::end_tag('div'); echo $sectiontitle; diff --git a/theme/bootstrapbase/less/moodle/course.less b/theme/bootstrapbase/less/moodle/course.less index e42229ca8a505..638d4ca401b43 100644 --- a/theme/bootstrapbase/less/moodle/course.less +++ b/theme/bootstrapbase/less/moodle/course.less @@ -53,8 +53,6 @@ &.right { float: right; } - position: relative; - z-index: 10; } .spinner { height: 16px; @@ -152,8 +150,6 @@ &.right { float: left; } - position: relative; - z-index: 10; } .activity { .spinner { @@ -342,7 +338,7 @@ margin-top: 0; } .course-content ul li.section.hidden { - .sectionname, + .sectionname > span, .content > div, /* All the divs but the activities which are in a UL. */ .activity .activityinstance { opacity: .5;