Sha256: aa0af412cfb887f9d953f41042d59309e9e4da3c43060b1ee062e8a8b8bd2362

Contents?: true

Size: 1.2 KB

Versions: 133

Compression:

Stored size: 1.2 KB

Contents

name: Layout super navigation header
description: The super navigation header provides a consistent header across GOV.UK.
body: |
shared_accessibility_criteria:
  - link
accessibility_criteria: |
  The component must:

  * have a text contrast ratio higher than 4.5:1 against the background colour to meet WCAG AA

  Images in the super navigation header must:

  * be presentational when linked to from accompanying text (crown icon).

  Landmarks and Roles in the super navigation header should:

  * have a role of banner at the root of the component (<header>) (ARIA 1.1)
accessibility_excluded_rules:
   # The header element can not be top level in the examples.
  - landmark-banner-is-top-level
  # Banners will be duplicated in component examples list.
  - duplicate-id
  - duplicate-id-active
  - duplicate-id-aria
  - landmark-no-duplicate-banner
  - landmark-unique
examples:
  default:
  with_custom_logo_link:
    description: |
      The header logo links to root by default. This option allows us to override that in certain instances.

      Remember to update the title, as the default is "Go to the GOV.UK homepage".
    data:
      logo_link: "https://www.example.com"
      logo_link_title: "Go to example"

Version data entries

133 entries across 133 versions & 1 rubygems

Version Path
govuk_publishing_components-35.17.0 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.16.1 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.16.0 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.15.5 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.15.4 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.15.3 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.15.2 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.15.1 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.15.0 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.14.0 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.13.2 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.13.1 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.13.0 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.12.0 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.11.0 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.10.0 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.9.0 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.8.0 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.7.0 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml
govuk_publishing_components-35.6.0 app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml