Skip to content

Commit

Permalink
Update content_helper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Aug 13, 2024
1 parent 71a7d5a commit 32068f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/helpers/content_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 32068f4

Please sign in to comment.