PreferenceForm: Add `.theme-mode` class to theme mode control-group

refs #4562
This commit is contained in:
Florian Strohmaier 2021-10-26 16:49:15 +02:00
parent ea5560756b
commit bdfb75023f
1 changed files with 5 additions and 1 deletions

View File

@ -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']]]
)
]
);