Sha256: 65d66d811eccef9100a3ae707873a5f28e7ec11771339667f263b19d0471826b
Contents?: true
Size: 1.11 KB
Versions: 7
Compression:
Stored size: 1.11 KB
Contents
<% title ||= false description_text ||= false description_govspeak ||= false description ||= yield || false local_assigns[:margin_bottom] ||= 8 local_assigns[:margin_bottom] = 8 if local_assigns[:margin_bottom] > 9 shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns) css_classes = %w(gem-c-notice) css_classes << (shared_helper.get_margin_bottom) description_present = description.present? || description_text.present? || description_govspeak.present? %> <% if title || description_present %> <%= tag.section class: css_classes, aria: { label: "Notice" }, role: "region" do %> <% if title %> <% if description_present %> <%= tag.h2 title, class: "gem-c-notice__title" %> <% else %> <%= tag.span title, class: "gem-c-notice__title" %> <% end %> <% end %> <%= tag.p description_text, class: "gem-c-notice__description" if description_text %> <%= description if description %> <%= render 'govuk_publishing_components/components/govspeak', content: description_govspeak if description_govspeak %> <% end %> <% end %>
Version data entries
7 entries across 7 versions & 1 rubygems