Sha256: d7c644a3554f75ebbd10e5bc67d09ae8d9ec515d9ca4349189749d64bd915b60

Contents?: true

Size: 446 Bytes

Versions: 8

Compression:

Stored size: 446 Bytes

Contents

<%
  add_gem_component_stylesheet("skip-link")

  href ||= '#main-content'
  text ||= t('components.skip_link.text')

  component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
  component_helper.add_class("gem-c-skip-link govuk-skip-link govuk-!-display-none-print")
  component_helper.add_data_attribute({ module: "govuk-skip-link" })

%>
<%= link_to(text, href, **component_helper.all_attributes) %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
govuk_publishing_components-51.1.0 app/views/govuk_publishing_components/components/_skip_link.html.erb
govuk_publishing_components-51.0.0 app/views/govuk_publishing_components/components/_skip_link.html.erb
govuk_publishing_components-50.0.1 app/views/govuk_publishing_components/components/_skip_link.html.erb
govuk_publishing_components-50.0.0 app/views/govuk_publishing_components/components/_skip_link.html.erb
govuk_publishing_components-49.1.0 app/views/govuk_publishing_components/components/_skip_link.html.erb
govuk_publishing_components-49.0.0 app/views/govuk_publishing_components/components/_skip_link.html.erb
govuk_publishing_components-48.0.0 app/views/govuk_publishing_components/components/_skip_link.html.erb
govuk_publishing_components-47.0.0 app/views/govuk_publishing_components/components/_skip_link.html.erb