Sha256: cef9625193a276d6c7e3dd5b5afe806a42d0955a5c00fbcdce0e73de2c546f23

Contents?: true

Size: 637 Bytes

Versions: 30

Compression:

Stored size: 637 Bytes

Contents

<%
  brand ||= false
  brand_helper = GovukPublishingComponents::AppHelpers::BrandHelper.new(brand)
  heading_helper = GovukPublishingComponents::Presenters::HeadingHelper.new(local_assigns)
  shared_helper = GovukPublishingComponents::Presenters::SharedHelper.new(local_assigns)

  classes = %w(gem-c-heading)
  classes << heading_helper.classes
  classes << brand_helper.brand_class
  classes << brand_helper.border_color_class
  classes << (shared_helper.get_margin_bottom) if [*0..9].include?(local_assigns[:margin_bottom])
%>
<%= content_tag(shared_helper.get_heading_level, text,
    class: classes,
    id: heading_helper.id
) %>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
govuk_publishing_components-20.2.2 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-20.2.1 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-20.2.0 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-20.1.0 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-20.0.0 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-19.0.0 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-18.3.1 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-18.3.0 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-18.2.0 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-18.1.2 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-18.1.1 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-18.1.0 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-18.0.1 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-18.0.0 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-17.21.0 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-17.20.0 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-17.19.1 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-17.19.0 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-17.18.0 app/views/govuk_publishing_components/components/_heading.html.erb
govuk_publishing_components-17.17.0 app/views/govuk_publishing_components/components/_heading.html.erb