Sha256: bae89cb5d490fbd04bc165b65043d72f9ea9c330695153b895cd257706177e95

Contents?: true

Size: 610 Bytes

Versions: 190

Compression:

Stored size: 610 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)

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

Version data entries

190 entries across 190 versions & 1 rubygems

Version Path
govuk_publishing_components-24.16.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.16.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.15.3 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.15.2 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.15.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.15.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.14.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.14.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.13.5 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.13.4 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.13.3 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.13.2 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.13.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.13.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.12.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.11.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.11.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.10.3 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.10.2 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-24.10.1 app/views/govuk_publishing_components/components/_details.html.erb