Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Collapsible section

Oliver Günther93d3fe7ece96
diff --git a/spec/components/previews/collapsible_section_preview.rb b/spec/components/previews/collapsible_section_preview.rb
new file mode 100644
index 00000000000..0a4fb3b829b
--- /dev/null
+++ b/spec/components/previews/collapsible_section_preview.rb
@@ -0,0 +1,4 @@
+# @logical_path OpenProject
+class CollapsibleSectionPreview < Lookbook::Preview
+ def default; end
+end
diff --git a/frontend/src/global_styles/content/_collapsible_section.lsg b/spec/components/previews/collapsible_section_preview/default.html.erb
similarity index 65%
rename from frontend/src/global_styles/content/_collapsible_section.lsg
rename to spec/components/previews/collapsible_section_preview/default.html.erb
index fe63c3bf9d4..2bc49b6feee 100644
--- a/frontend/src/global_styles/content/_collapsible_section.lsg
+++ b/spec/components/previews/collapsible_section_preview/default.html.erb
@@ -1,21 +1,14 @@
-# Collapsible section
-
-```
<collapsible-section-augment initially-expanded="true"
- section-title="My section title">
+ section-title="My section title">
</collapsible-section-augment>
<div class="collapsible-section-augment--body" hidden>
-<p><strong>Initially expanded</strong></p>
+ <p><strong>Initially expanded</strong></p>
</div>
-```
-
-```
<collapsible-section-augment section-title="My closed section title">
</collapsible-section-augment>
<div class="collapsible-section-augment--body" hidden>
-<p><strong>Initially closed</strong></p>
+ <p><strong>Initially closed</strong></p>
</div>
</collapsible-section>
-```