Sha256: 0b7fb84924fda926c833776e9e0da00c0477cfa13732d7a8d1c9541c6e041c4d

Contents?: true

Size: 1.54 KB

Versions: 7

Compression:

Stored size: 1.54 KB

Contents

name: Layout header (experimental)
description: The header provides the crown logo, product or service name and navigation
body: |
  Requires the specification of the environment (development, integration,
  staging or production).
govuk_frontend_components:
  - header
examples:
  default:
    data:
      environment: production
  staging_environment:
    data:
      environment: staging
  integration_environment:
    data:
      environment: integration
  development_environment:
    data:
      environment: development
  with_product_name:
    data:
      environment: production
      product_name: Product
  with_navigation:
    data:
      environment: production
      navigation_items:
      - text: Navigation item 1
        href: "#1"
        active: true
      - text: Navigation item 2
        href: "#2"

accessibility_criteria: |
  The component must:

  - have a text contrast ratio higher than 4.5:1 against the background colour to meet [WCAG AA](https://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast)

  Links in the Header must:

  - accept focus
  - be focusable with a keyboard
  - be usable with a keyboard
  - indicate when they have focus
  - change in appearance when touched (in the touch-down state)
  - change in appearance when hovered
  - have visible text

  Images in the Header must:

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

  Landmarks and Roles in the Header should:

  - have a role of `banner` at the root of the component (<header>) ([ARIA 1.1](https://www.w3.org/TR/wai-aria-1.1/#banner))

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
govuk_publishing_components-12.7.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-12.6.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-12.5.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-12.4.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-12.3.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-12.2.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-12.1.0 app/views/govuk_publishing_components/components/docs/layout_header.yml