From 2cb90e24f2fc46614ccc6e6fa40b99112e865234 Mon Sep 17 00:00:00 2001
From: Daniel Poggenpohl <daniel.poggenpohl@fernuni-hagen.de>
Date: Fri, 26 Mar 2021 12:35:47 +0100
Subject: [PATCH] #106 - Added CSS class to help icon modal dialog - Fix help
 icon modal dialog text layout in table headers (if normal text alignment is
 left alignment)

---
 scss/post.scss               | 6 ++++++
 templates/help_icon.mustache | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/scss/post.scss b/scss/post.scss
index 5c19d47..80c1b3c 100644
--- a/scss/post.scss
+++ b/scss/post.scss
@@ -1044,6 +1044,12 @@ body.scrolled #goto-top-link {
 
 @if variable-exists(helptextmodal) {
     @if $helptextmodal == 'yes' {
+
+        th .boost-campus-modal-help-dialog .modal-body {
+            text-align: left;
+            font-weight: $font-weight-base;
+        }
+
         .modal {
             /* Set font-size to normal size as the modals inherit the font size from the element they are placed in.
              * This is not intended and so we force the font size to be the normal size. */
diff --git a/templates/help_icon.mustache b/templates/help_icon.mustache
index 764ce10..650809c 100644
--- a/templates/help_icon.mustache
+++ b/templates/help_icon.mustache
@@ -28,7 +28,7 @@
     {{#pix}}help, core, {{{alt}}}{{/pix}}
 </a>
 
-<div class="modal moodle-has-zindex" {{#linkid}}id="{{linkid}}-modal-dialogue"{{/linkid}} data-region="modal-container" aria-hidden="true" role="dialog">
+<div class="modal moodle-has-zindex boost-campus-modal-help-dialog" {{#linkid}}id="{{linkid}}-modal-dialogue"{{/linkid}} data-region="modal-container" aria-hidden="true" role="dialog">
     <div class="modal-dialog {{$classes}}{{/classes}}" role="document" data-region="modal" aria-labelledby="{{uniqid}}-modal-title" tabindex="0">
         <div class="modal-content">
             <div class="modal-header {{$headerclasses}}{{headerclasses}}{{/headerclasses}}" data-region="header">
-- 
GitLab