Sha256: f41e7103d009ec1f9dd58482120de523a445a1b51fe8b4fc94ba25607a7d628c

Contents?: true

Size: 1.67 KB

Versions: 37

Compression:

Stored size: 1.67 KB

Contents

name: Previous and next navigation
description: Navigational links that allow users to navigate within a series of pages
  or elements.
body: |
  This component accepts 2 optional parameters, previous and next.

  Each optional parameter accepts:

  - an URL for the link
  - a title for the URL
  - a label that can add extra info (ie page number) that will be displayed under the title

  If one of the 2 parameters is nil, no link will appear.
accessibility_criteria: |
  Icons in the component must not be announced by screen readers.

  The component must:

  - identify itself as pagination navigation
  - provide a distinction between the navigation text and label text of the links both visually and for screenreaders

shared_accessibility_criteria:
  - link
examples:
  default:
    data:
      previous_page:
        url: previous-page
        title: Previous page
        label: 1 of 3
  only_next:
    data:
      next_page:
        url: next-page
        title: Next page
        label: Tax disc
  both_previous_and_next:
    data:
      previous_page:
        url: previous-page
        title: Previous page
        label: 1 of 3
      next_page:
        url: next-page
        title: Next page
        label: 3 of 3
  both_previous_and_next_no_labels:
    data:
      previous_page:
        url: previous-page
        title: Previous page
      next_page:
        url: next-page
        title: Next page
  become_a_lorry_bus_driver_example:
    data:
      previous_page:
        url: previous-page
        title: Previous
        label: Applying for a provisional lorry or bus licence
      next_page:
        url: next-page
        title: Next
        label: 'Driver CPC part 1 test: theory'

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
govuk_publishing_components-34.3.0 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-34.2.0 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-34.1.3 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-34.1.2 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-34.1.1 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-34.1.0 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-34.0.0 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-33.1.0 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-33.0.0 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-32.1.0 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-32.0.0 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-31.2.0 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-31.1.2 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-31.1.1 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-31.1.0 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-31.0.0 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-30.7.3 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-30.7.2 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-30.7.1 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml
govuk_publishing_components-30.7.0 app/views/govuk_publishing_components/components/docs/previous_and_next_navigation.yml