From 32068f49af17a63d2b3e84f180ddab6bc05f504d Mon Sep 17 00:00:00 2001 From: andrew nimmo Date: Tue, 13 Aug 2024 15:50:01 -0700 Subject: [PATCH] Update content_helper.rb --- app/helpers/content_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb index 3ffce86243..267bebcc8b 100644 --- a/app/helpers/content_helper.rb +++ b/app/helpers/content_helper.rb @@ -143,6 +143,8 @@ def collapse_info_trigger(id, **args) aria: { expanded: "false", controls: id }) end + # For a collapsing panel_block, pass an HTML id for args[:collapse] and + # args[:collapse_show] to show it open by default. def panel_block(**args, &block) heading = panel_block_heading(args) footer = panel_block_footer(args)