Skip to content
Snippets Groups Projects
Commit eed116dc authored by Artem Dmitriiev's avatar Artem Dmitriiev
Browse files

Issue #3510676 by f0ns: Issue with Copy Button Background Color in the settings form

parent 0fd4dd29
No related branches found
No related tags found
1 merge request!4Issue #3510676 by f0ns: Issue with Copy Button Background Color in the settings form
......@@ -79,7 +79,7 @@ class HighlightJsSettingsForm extends ConfigFormBase {
$form['copy_btn_config']['copy_bg_color'] = [
'#type' => 'color',
'#title' => $this->t('Copy Button Background Color'),
'#default_value' => $config->get('copy_bg_transparent') ?: '#4CAF50',
'#default_value' => $config->get('copy_bg_color') ?: '#4CAF50',
'#description' => $this->t('Choose a background color for the "Copy" button.'),
'#states' => [
'visible' => [
......@@ -137,12 +137,12 @@ class HighlightJsSettingsForm extends ConfigFormBase {
];
$roles = Role::loadMultiple();
$options = array();
$options = [];
foreach ($roles as $rid => $role) {
$options[$rid] = $role->label();
}
$form['copy_btn_config']['role_copy_access'] = array(
$form['copy_btn_config']['role_copy_access'] = [
'#type' => 'checkboxes',
'#title' => $this->t('User Roles'),
'#options' => $options,
......@@ -153,7 +153,7 @@ class HighlightJsSettingsForm extends ConfigFormBase {
':input[name="copy_enable"]' => ['checked' => TRUE],
],
],
);
];
$form['theme'] = [
'#type' => 'select',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment