From ff9a35d4072182b551f4b44821274a41e14cfd4c Mon Sep 17 00:00:00 2001 From: Carsten Rose <carsten.rose@math.uzh.ch> Date: Sat, 14 Dec 2019 21:22:47 +0100 Subject: [PATCH] Fixed that label of 'checkbox' are bold and label of 'checkbox-inline' are normal. --- extension/Classes/Core/Constants.php | 17 +++++++++++++++++ extension/Classes/Core/Form/Checkbox.php | 2 ++ less/qfq-bs.css.less | 1 + 3 files changed, 20 insertions(+) diff --git a/extension/Classes/Core/Constants.php b/extension/Classes/Core/Constants.php index b35d0d1ff..59920b0f1 100644 --- a/extension/Classes/Core/Constants.php +++ b/extension/Classes/Core/Constants.php @@ -1953,3 +1953,20 @@ const SETTING_TABLESORTER_MODE = 'mode'; const SETTING_TABLESORTER_MODE_DELETE = 'delete'; const SETTING_TABLESORTER_CLEAR = 'Clear'; +// Object: Type +const T_LABEL = 't_label'; +const T_INPUT = 't_input'; +const T_NOTE = 't_note'; +const T_ = 't_note'; + +// Object: Item +const I_TYPE = 'type'; +const I_ID = 'id'; +const I_VALUE = 'value'; +const I_CLASS = 'class'; +const I_ATTRIBUTE = 'attribute'; + +// Object: extra for checkboxes +const I_CHECKED = 'checked'; +const I_UNCHECKED = 'unchecked'; + diff --git a/extension/Classes/Core/Form/Checkbox.php b/extension/Classes/Core/Form/Checkbox.php index ec33e2952..02bc0133a 100644 --- a/extension/Classes/Core/Form/Checkbox.php +++ b/extension/Classes/Core/Form/Checkbox.php @@ -368,6 +368,8 @@ class Checkbox { } /** + * Helper Function to collect hidden checkbox elements. + * * @param array $formElement * @param string $htmlFormElementName * @param string $htmlHidden diff --git a/less/qfq-bs.css.less b/less/qfq-bs.css.less index 968645c2f..57a8bc584 100644 --- a/less/qfq-bs.css.less +++ b/less/qfq-bs.css.less @@ -146,6 +146,7 @@ i.@{spinner_class} { -moz-user-select: none; -ms-user-select: none; user-select: none; + font-weight: normal; } .checkbox-inline input:read-only ~ .checkmark { -- GitLab