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

[chore] moved comment to paragraph

Eric Schubert6d788c50806f
diff --git a/frontend/src/app/spot/spot-docs.component.html b/frontend/src/app/spot/spot-docs.component.html
index 18e72b2025b..6cb86de62fd 100644
--- a/frontend/src/app/spot/spot-docs.component.html
+++ b/frontend/src/app/spot/spot-docs.component.html
@@ -125,6 +125,11 @@ Currently selected value is {{ toggleValue }}
<h2>Normal list</h2>
+<p>HINT: To enable floating actions on hover, every <i>spot-list--item</i> needs a
+ <i>spot-list--item-floating-wrapper</i>, which wraps the item's content and the <i>spot-list-item-floating-actions</i>,
+ but not any sub lists. This way, floating actions on hover are defined specific for each item, hence in the same list
+ items with floating actions can be right next to items without.</p>
+
<ul class="spot-list">
<li class="spot-list--item">
<label class="spot-list--item-action">
@@ -134,8 +139,6 @@ Currently selected value is {{ toggleValue }}
</li>
<li class="spot-list--item">
<div class="spot-list--item-floating-wrapper">
- <!-- The floating wrapper enables correct hover effects, when the list items needs floating actions on hover.-->
- <!-- Always wrap the content of the list item and the floating actions into the wrapper, but not any sub lists.-->
<label class="spot-list--item-action">
<spot-checkbox [(ngModel)]="listCheckboxValue"></spot-checkbox>
<div class="spot-list--item-title">Checkbox item with hover menu</div>
@@ -229,8 +232,6 @@ Currently selected value is {{ toggleValue }}
</li>
<li class="spot-list--item">
<div class="spot-list--item-floating-wrapper">
- <!-- The floating wrapper enables correct hover effects, when the list items needs floating actions on hover.-->
- <!-- Always wrap the content of the list item and the floating actions into the wrapper, but not any sub lists.-->
<label class="spot-list--item-action">
<spot-checkbox [(ngModel)]="listCheckboxValue"></spot-checkbox>
<div class="spot-list--item-title">Checkbox item with hover menu</div>