From bdfb75023f2222f489eb75f01096d1a1d1388258 Mon Sep 17 00:00:00 2001 From: Florian Strohmaier Date: Tue, 26 Oct 2021 16:49:15 +0200 Subject: [PATCH] PreferenceForm: Add `.theme-mode` class to theme mode control-group refs #4562 --- application/forms/PreferenceForm.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/forms/PreferenceForm.php b/application/forms/PreferenceForm.php index 7fd9b02d0..ac24ee130 100644 --- a/application/forms/PreferenceForm.php +++ b/application/forms/PreferenceForm.php @@ -243,7 +243,11 @@ class PreferenceForm extends Form ], 'value' => isset($value) ? $value : '', 'disable' => isset($disabled) ? $disabled : [], - 'escape' => false + 'escape' => false, + 'decorators' => array_merge( + array_slice(self::$defaultElementDecorators, 0, -1), + [['HtmlTag', ['tag' => 'div', 'class' => 'control-group theme-mode']]] + ) ] );