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-23.15.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.14.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.13.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.13.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.12.3 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.12.2 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.12.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.12.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.11.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.11.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.10.2 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.10.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.10.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.9.2 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.9.1 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.9.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.8.0 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.7.7 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.7.6 app/views/govuk_publishing_components/components/_details.html.erb
govuk_publishing_components-23.7.5 app/views/govuk_publishing_components/components/_details.html.erb