Commit 71eb1aaf authored by Sven Berg Ryen's avatar Sven Berg Ryen
Browse files

Issue #3302278 by svenryen, anoopsingh92: Impossible to change banner backrgound and text color

parent aca47e1e
Loading
Loading
Loading
Loading
+6 −1
Changes for src/Form/EuCookieComplianceConfigForm.php: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -733,7 +733,8 @@ class EuCookieComplianceConfigForm extends ConfigFormBase {
      '#title' => $this->t('Appearance'),
    ];

    // Give users warning if the Olivero theme is enabled, but the styling for it is disabled.
    // Give users warning if the Olivero theme is enabled, but the styling for
    // it is disabled.
    if (!$config->get('use_olivero_css') && $this->config('system.theme')->get('default') === 'olivero') {
      $this->messenger()->addWarning($this->t('Olivero theme is enabled, but Olivero style support is not enabled. You can enable this setting within the <a href="#edit-appearance">Appearance fieldset</a> to extend the look and feel of the Olivero theme.'));
    }
@@ -1273,6 +1274,10 @@ class EuCookieComplianceConfigForm extends ConfigFormBase {
      $bg_color = substr($form_state->getValue('popup_bg_hex'), 1);
      $text_color = substr($form_state->getValue('popup_text_hex'), 1);
    }
    else {
      $bg_color = $form_state->getValue('popup_bg_hex');
      $text_color = $form_state->getValue('popup_text_hex');
    }

    // Save settings.
    $config = $this->config('eu_cookie_compliance.settings');