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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#61126] update lookbook with new stimulus instructions
Tobias Dillmannab303dc75566
diff --git a/lookbook/docs/patterns/25-hover-cards.md.erb b/lookbook/docs/patterns/25-hover-cards.md.erbindex 3a32cb6d47f..172298e5ba4 100644--- a/lookbook/docs/patterns/25-hover-cards.md.erb+++ b/lookbook/docs/patterns/25-hover-cards.md.erb@@ -31,9 +31,9 @@ In the past, we could not easily use the `Primer::Beta::Popover` component. WithBut it would require us to adjust the DOM of the hover card contents and the styling of the popover, so that it maintains its looks.Essentially the `HoverCard` is just a div which renders inside a `turboFrame`.-This hover card is triggered by a class called `op-hover-card--preview-trigger` which can be set on any element.-A global event listener is registered on all elements with this class and triggers the popover when being hovered.+We have a `HoverCardTriggerController` that listens for hover events on elements with the attribute `data-hover-card-trigger-target="trigger"`+and renders a hover card for that element when the mouse enters the trigger.Additionally, the trigger element needs to pass the URL for the `turboFrame` as a data attribute called `data-hover-card-url`.When the hovering event is received, the `HoverCardTriggerController` will retrieve the data for the turbo frame from@@ -53,7 +53,7 @@ The hover card will close automatically when the mouse leaves the trigger or the<!-- app/views/module_a/index.html.erb --><a href="work_packages/14/activity"data-hover-card-url="work_packages/14/hover_card"- class="op-hover-card--preview-trigger">+ data-hover-card-trigger-target="trigger">#14</a>@@ -61,7 +61,7 @@ The hover card will close automatically when the mouse leaves the trigger or theprobably apply the trigger to an <op-principal> tag. --><a href="users/14"data-hover-card-url="users/14/hover_card"- class="op-hover-card--preview-trigger">+ data-hover-card-trigger-target="trigger"><img src="user_avatar.png" alt=""></a></body>