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
Update preview to show action menu in header
Mir Bhatia5e89c4d0ad9e
diff --git a/lookbook/previews/op_primer/border_box_component_preview/collapsible.html.erb b/lookbook/previews/op_primer/border_box_component_preview/collapsible.html.erbindex 5a91b94162c..ffe6cc10a50 100644--- a/lookbook/previews/op_primer/border_box_component_preview/collapsible.html.erb+++ b/lookbook/previews/op_primer/border_box_component_preview/collapsible.html.erb@@ -1,10 +1,27 @@<%= render(Primer::Beta::BorderBox.new) do |component| %><% component.with_header do %>- <%= render(Primer::OpenProject::BorderBox::CollapsibleHeader.new(box: component)) do |header|+ <%= render(Primer::OpenProject::FlexLayout.new(align_items: :flex_start)) do |flex| %>+ <%= flex.with_column(flex: 1, pt: 1) do %>+ <%= render(Primer::OpenProject::BorderBox::CollapsibleHeader.new(box: component)) do |header|header.with_count(count: 3)header.with_title { "Collapsible title" }header.with_description { "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor" }end %>+ <% end %>+ <%= flex.with_column do %>+ <%= render(Primer::Alpha::ActionMenu.new) do |menu|+ menu.with_show_button(icon: "kebab-horizontal", scheme: :invisible, "aria-label": "Header actions")+ menu.with_item(+ tag: :a,+ label: "Edit",+ href: "#"+ ) do |item|+ item.with_leading_visual_icon(icon: :pencil)+ "foo"+ end+ end %>+ <% end %>+ <% end %><% end %><% component.with_body { "Body" } %><% component.with_row do %>