Update Advanced.tpl
authorNicol <vingle@users.noreply.github.com>
Sat, 2 Dec 2023 16:06:15 +0000 (16:06 +0000)
committerGitHub <noreply@github.com>
Sat, 2 Dec 2023 16:06:15 +0000 (16:06 +0000)
templates/CRM/Contact/Form/Search/Advanced.tpl

index 81f7cce2761a73122666633eae37ff0d491d9dab..e984701514512be8c3cacdf57e87f8e83572f241 100644 (file)
@@ -13,8 +13,8 @@
 
   {include file="CRM/Contact/Form/Search/Intro.tpl"}
 
-  <div class="crm-accordion-wrapper crm-advanced_search_form-accordion {if !empty($ssID) or $rows}collapsed{/if}">
-    <div class="crm-accordion-header crm-master-accordion-header">
+  <details class="crm-advanced_search_form-accordion {if !empty($ssID) or $rows}open=""{/if}">
+    <summary class="crm-master-accordion-header">
       {if !empty($savedSearch)}
         {ts 1=$savedSearch.name}Edit %1 Smart Group Criteria{/ts}
       {elseif !empty($ssID) or $rows}
         {ts}Search Criteria{/ts}
       {/if}
       {help id='id-advanced-intro'}
-    </div>
+    </summary>
     <div class="crm-accordion-body">
       {include file="CRM/Contact/Form/Search/AdvancedCriteria.tpl"}
     </div>
-  </div>
+  </details>
 </div>
 
 {if $rowsEmpty}