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-21.14.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-21.13.5 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-21.13.4 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-21.13.3 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-21.13.2 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-21.13.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-21.13.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-21.12.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-21.11.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-21.10.0 app/views/govuk_publishing_components/components/_details.html.erb