From e20b490da313b951b579ff6d2ed8ac6f5e8d6a8b Mon Sep 17 00:00:00 2001 From: Kathrin Osswald Date: Fri, 6 Oct 2017 11:58:57 +0200 Subject: [PATCH] MDL-60363 conditional activities: Dim the icon also in student's view. The class dimmed_text would only dim the activity's title and not the icon. The teacher has both, icon and text, dimmed. So I added the class dimmed to the class dimmed_text, what dims both elements for the students. --- course/renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/renderer.php b/course/renderer.php index d75983726bc..a086ba61fa5 100644 --- a/course/renderer.php +++ b/course/renderer.php @@ -647,7 +647,7 @@ class core_course_renderer extends plugin_renderer_base { } } else { $linkclasses .= ' dimmed'; - $textclasses .= ' dimmed_text'; + $textclasses .= ' dimmed dimmed_text'; } return array($linkclasses, $textclasses); }