Sha256: d5c06e20b8272f716a5fb0550b1b301c907ce9ad81723a8677b6a7e39ca13144

Contents?: true

Size: 831 Bytes

Versions: 53

Compression:

Stored size: 831 Bytes

Contents

<%
  add_gem_component_stylesheet("details")

  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] = ''

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

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
govuk_publishing_components-37.1.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-37.1.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-37.0.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-36.1.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-36.0.3 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-36.0.2 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-36.0.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-36.0.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-35.23.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-35.22.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-35.21.4 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-35.21.3 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-35.21.2 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-35.21.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-35.21.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-35.20.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-35.20.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-35.19.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-35.18.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-35.17.0 app/views/govuk_publishing_components/components/_details.html.erb