Adds support for fieldset
authorNicol <vingle@users.noreply.github.com>
Fri, 22 Dec 2023 13:07:48 +0000 (14:07 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Dec 2023 13:07:48 +0000 (14:07 +0100)
In this commit: https://github.com/civicrm/civicrm-core/commit/1602ec3e104de40e7bd785496f0cde323fe870ed the `display: none` was narrowed to only target divs with the class '.collapsed'. This excluded a few examples of fieldsets being used (as identified in ThemeTest, Accordion 4 - https://lab.civicrm.org/extensions/themetest/-/blob/main/ang/themetest/snippets/accordion4.html)

css/civicrm.css

index 430a55fd90c71e724b1dc688116e0830e63aad34..956e5ca804730214fd5a4d938eb427b69e4e1d38 100644 (file)
@@ -2274,6 +2274,7 @@ div.crm-master-accordion-header a.helpicon {
 }
 
 .crm-container div.collapsed .crm-accordion-body,
+.crm-container fieldset.collapsed .crm-accordion-body,
 .crm-container .crm-collapsible.collapsed .collapsible-title + * {
   display: none;
 }