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

Loading indicator

Oliver Günther780e5b6f331d
diff --git a/frontend/src/global_styles/content/_loading_indicator.lsg b/frontend/src/global_styles/content/_loading_indicator.lsg
deleted file mode 100644
index 04c4a3835c2..00000000000
--- a/frontend/src/global_styles/content/_loading_indicator.lsg
+++ /dev/null
@@ -1,25 +0,0 @@
-# Loading indicator
-
-```html
-<svg class="op-loading-indicator">
- <rect rx="4px"/>
- <rect rx="4px"/>
- <rect rx="4px"/>
- <rect rx="2px"/>
-</svg>
-```
-
-
-To block the entire page, wrap the element in a `div.loading-indicator--background`
-
-
-``` html
-<div class="loading-indicator--background">
- <svg class="op-loading-indicator">
- <rect rx="4px"/>
- <rect rx="4px"/>
- <rect rx="4px"/>
- <rect rx="2px"/>
- </svg>
-</div>
-```
diff --git a/spec/components/previews/links_preview.rb b/spec/components/previews/links_preview.rb
new file mode 100644
index 00000000000..88eb1291b3c
--- /dev/null
+++ b/spec/components/previews/links_preview.rb
@@ -0,0 +1,4 @@
+# @logical_path OpenProject
+class LinksPreview < Lookbook::Preview
+ def default; end
+end
diff --git a/spec/components/previews/links_preview/default.html.erb b/spec/components/previews/links_preview/default.html.erb
new file mode 100644
index 00000000000..4181d30d686
--- /dev/null
+++ b/spec/components/previews/links_preview/default.html.erb
@@ -0,0 +1,12 @@
+<a href="#">A normal link</a>
+
+<div>
+ <a href="#" class="sort asc">Sort link</a>
+ <a href="#" class="sort desc">Sort link</a>
+</div>
+
+<a href="#" class="issue">#2999 open issue</a>
+<a href="#" class="issue closed">#2999 closed issue</a>
+
+<a href="#" class="icon">&nbsp;</a>
+<a href="#" class="icon-context">&nbsp;</a>
diff --git a/spec/components/previews/loading_indicator_preview.rb b/spec/components/previews/loading_indicator_preview.rb
new file mode 100644
index 00000000000..7d6f7cd583f
--- /dev/null
+++ b/spec/components/previews/loading_indicator_preview.rb
@@ -0,0 +1,4 @@
+# @logical_path OpenProject
+class LoadingIndicatorPreview < Lookbook::Preview
+ def default; end
+end
diff --git a/spec/components/previews/loading_indicator_preview/default.html.erb b/spec/components/previews/loading_indicator_preview/default.html.erb
new file mode 100644
index 00000000000..85f228b7828
--- /dev/null
+++ b/spec/components/previews/loading_indicator_preview/default.html.erb
@@ -0,0 +1,8 @@
+<div class="loading-indicator--background">
+ <svg class="op-loading-indicator">
+ <rect rx="4px"/>
+ <rect rx="4px"/>
+ <rect rx="4px"/>
+ <rect rx="2px"/>
+ </svg>
+</div>