Sha256: 2abd6f8db9304fdea93fa52f594446694af06d343be7abb236e842b0e86544e0

Contents?: true

Size: 624 Bytes

Versions: 164

Compression:

Stored size: 624 Bytes

Contents

<% if tooltip.present? %>
  <%= render Primer::BaseComponent.new(tag: :div, position: :relative, display: :inline_block) do %>
    <%= render Primer::Beta::BaseButton.new(**@system_arguments) do -%>
      <%= leading_visual %><%= trimmed_content %><%= trailing_visual %><%= primer_octicon("triangle-down", ml: 2, mr: -1) if @dropdown %>
    <% end -%>
    <%= tooltip %>
  <% end -%>
<% else %>
  <%= render Primer::Beta::BaseButton.new(**@system_arguments) do -%>
    <%= leading_visual %><%= trimmed_content %><%= trailing_visual %><%= primer_octicon("triangle-down", ml: 2, mr: -1) if @dropdown %>
  <% end -%>
<% end %>

Version data entries

164 entries across 164 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.19.0 app/components/primer/button_component.html.erb
primer_view_components-0.15.1 app/components/primer/button_component.html.erb
primer_view_components-0.15.0 app/components/primer/button_component.html.erb
openproject-primer_view_components-0.18.1 app/components/primer/button_component.html.erb
openproject-primer_view_components-0.17.1 app/components/primer/button_component.html.erb
openproject-primer_view_components-0.17.0 app/components/primer/button_component.html.erb
primer_view_components-0.14.0 app/components/primer/button_component.html.erb
openproject-primer_view_components-0.16.0 app/components/primer/button_component.html.erb
openproject-primer_view_components-0.15.0 app/components/primer/button_component.html.erb
openproject-primer_view_components-0.14.0 app/components/primer/button_component.html.erb
openproject-primer_view_components-0.13.1 app/components/primer/button_component.html.erb
primer_view_components-0.13.2 app/components/primer/button_component.html.erb
primer_view_components-0.13.1 app/components/primer/button_component.html.erb
openproject-primer_view_components-0.13.0 app/components/primer/button_component.html.erb
primer_view_components-0.13.0 app/components/primer/button_component.html.erb
primer_view_components-0.12.0 app/components/primer/button_component.html.erb
primer_view_components-0.11.0 app/components/primer/button_component.html.erb
openproject-primer_view_components-0.12.1 app/components/primer/button_component.html.erb
primer_view_components-0.10.0 app/components/primer/button_component.html.erb
openproject-primer_view_components-0.11.0 app/components/primer/button_component.html.erb