Sha256: ca71b4c2a6d3f6f9fc99124837ff7eed9ce0eeb035a46aad0667a4e4a34f1887

Contents?: true

Size: 725 Bytes

Versions: 56

Compression:

Stored size: 725 Bytes

Contents

<%
  shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)

  open ||= nil
  margin_bottom ||= 3
  css_classes = %w(gem-c-details govuk-details)
  css_classes << (shared_helper.get_margin_bottom)

  details_data_attributes = {}
  details_data_attributes[:module] = 'govuk-details gem-details'

  data_attributes ||= {}
  data_attributes[:details_track_click] = ''
%>
<%= tag.details class: css_classes, data: details_data_attributes, open: open do %>
  <%= tag.summary class: "govuk-details__summary", data: data_attributes do %>
    <span class="govuk-details__summary-text">
      <%= title %>
    </span>
  <% end %>
  <div class="govuk-details__text">
    <%= yield %>
  </div>
<% end %>

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
govuk_publishing_components-28.4.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-28.3.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-28.2.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-28.1.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-28.0.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-27.20.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-27.19.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-27.18.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-27.17.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-27.16.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-27.15.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-27.14.2 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-27.14.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-27.14.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-27.13.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-27.12.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-27.11.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-27.10.5 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-27.10.4 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-27.10.3 app/views/govuk_publishing_components/components/_details.html.erb