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-43.5.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-43.4.1 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-43.4.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-43.3.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-43.2.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-43.1.1 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-43.1.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-43.0.2 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-43.0.1 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-43.0.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-42.1.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-42.0.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-41.1.2 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-41.1.1 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-41.1.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-41.0.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-40.1.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-40.0.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-39.2.5 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-39.2.4 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb