Sha256: 4b0e117fbe28de8d819a608a9f8550a06238c73dbda744a39fc215b2e6e0d207

Contents?: true

Size: 899 Bytes

Versions: 103

Compression:

Stored size: 899 Bytes

Contents

<%
  add_gem_component_stylesheet("contextual-guidance")

  id ||= nil
  title ||= nil
  content ||= nil
  data_attributes ||= {}
  data_attributes[:module] = "contextual-guidance"
  guidance_id ||= nil
%>

<%= tag.div class: "gem-c-contextual-guidance", id: id, data: data_attributes do %>
  <%= tag.div class: "govuk-grid-row" do %>
    <%= tag.div class: "govuk-grid-column-two-thirds" do %>
      <%= tag.div class: "gem-c-contextual-guidance__input-field" do %>
        <%= yield %>
      <% end %>
    <% end %>
    <%= tag.div class: "govuk-grid-column-one-third" do %>
      <%= tag.div class: "gem-c-contextual-guidance__wrapper", for: html_for, id: guidance_id do %>
        <%= tag.div class: "gem-c-contextual-guidance__guidance" do %>
          <%= tag.h2 title, class: "govuk-heading-s" %>
          <%= content %>
        <% end %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
govuk_publishing_components-37.5.1 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-37.5.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-37.4.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-37.3.1 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-37.3.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-37.2.4 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-37.2.3 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-37.2.2 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-37.2.1 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-37.2.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-37.1.1 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-37.1.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-37.0.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-36.1.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-36.0.3 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-36.0.2 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-36.0.1 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-36.0.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-35.23.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-35.22.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb