Sha256: c44bd44256b5fd3dba5859eb4d344b7f9fa68d74b97ba0add64544d54a59f71c

Contents?: true

Size: 827 Bytes

Versions: 8

Compression:

Stored size: 827 Bytes

Contents

name: Skip link
description: Skip link component helps keyboard-only users skip to the main content on a page
govuk_frontend_components:
  - skip-link
accessibility_criteria: |
  - accept focus
  - be focusable with a keyboard
  - be usable with a keyboard
  - indicate when they have focus
  - becomes visible when pressing tab
  - is the first items that screen readers hear and that keyboard users tab to
accessibility_excluded_rules:
  - skip-link # This component is creating a reference to #content which is part of the layout
uses_component_wrapper_helper: true
examples:
  default:
    data:
  with_different_text:
    data:
      text: 'Skip to results'
  with_different_href:
    data:
      href: '#somewhere-on-the-page'
  custom_title_and_href:
    data:
      text: 'Skip to my content'
      href: '#my-content'

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
govuk_publishing_components-51.1.0 app/views/govuk_publishing_components/components/docs/skip_link.yml
govuk_publishing_components-51.0.0 app/views/govuk_publishing_components/components/docs/skip_link.yml
govuk_publishing_components-50.0.1 app/views/govuk_publishing_components/components/docs/skip_link.yml
govuk_publishing_components-50.0.0 app/views/govuk_publishing_components/components/docs/skip_link.yml
govuk_publishing_components-49.1.0 app/views/govuk_publishing_components/components/docs/skip_link.yml
govuk_publishing_components-49.0.0 app/views/govuk_publishing_components/components/docs/skip_link.yml
govuk_publishing_components-48.0.0 app/views/govuk_publishing_components/components/docs/skip_link.yml
govuk_publishing_components-47.0.0 app/views/govuk_publishing_components/components/docs/skip_link.yml