Sha256: 32ef45ce53ba03ed920c83f0b401e34e520fde38ca9b91bd7a9965ebed34a011

Contents?: true

Size: 776 Bytes

Versions: 16

Compression:

Stored size: 776 Bytes

Contents

<% if defined?(title) %>
  <%
    description_text ||= false
    description_govspeak ||= false
    margin_bottom_class = " gem-c-notice--bottom-margin" unless local_assigns[:margin_bottom]
  %>
  <section class="gem-c-notice<%= margin_bottom_class %>" aria-label="Notice" role="region">
    <% if description_text || description_govspeak %>
      <h2 class="gem-c-notice__title"><%= title %></h2>
    <% else %>
      <span class="gem-c-notice__title"><%= title %></span>
    <% end %>

    <% if description_text %>
      <p class="gem-c-notice__description"><%= description_text %></p>
    <% end %>

    <% if description_govspeak %>
      <%= render 'govuk_publishing_components/components/govspeak', content: description_govspeak %>
    <% end %>
  </section>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
govuk_publishing_components-9.4.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.3.6 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.3.5 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.3.4 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.3.3 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.3.2 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.3.1 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.3.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.2.3 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.2.2 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.2.1 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.2.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.1.1 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.1.0 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.0.1 app/views/govuk_publishing_components/components/_notice.html.erb
govuk_publishing_components-9.0.0 app/views/govuk_publishing_components/components/_notice.html.erb