From 921a59052a4c634e85e8dac4365a89752a2731de Mon Sep 17 00:00:00 2001
From: Lily Yan <l26yan@uwaterloo.ca>
Date: Thu, 3 Aug 2023 08:54:33 -0400
Subject: [PATCH] ISTWCMS-6512 The "fully visible global menu" option list
 should only appear when the branding level option list is set to Full
 University branding

---
 uw_fdsu_theme_resp.theme | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/uw_fdsu_theme_resp.theme b/uw_fdsu_theme_resp.theme
index 4c966fbc..dc0fd3ee 100644
--- a/uw_fdsu_theme_resp.theme
+++ b/uw_fdsu_theme_resp.theme
@@ -287,12 +287,18 @@ function uw_fdsu_theme_resp_form_system_theme_settings_alter(&$form, FormStateIn
     ],
     '#default_value' => theme_get_setting('wcms_branding_level', 'uw_fdsu_theme_resp') ?: 'full',
   ];
+
   $form['branding_options']['wcms_branding_menu_style'] = [
     '#type' => 'select',
     '#options' => [
       'compressed' => t('Compressed ("jump to") global menu'),
       'full' => t('Fully visible global menu'),
     ],
+    "#states" => [
+      'visible' => [
+        'select[name="wcms_branding_level"]' => ['value' => 'full'],
+      ],
+    ],
     '#default_value' => theme_get_setting('wcms_branding_menu_style', 'uw_fdsu_theme_resp') ?: 'compressed',
   ];
 }
-- 
GitLab