Sha256: 1250cb8b335a24e60a3defa7e32920937128e44eba62d74624e0e42f67ff72bf

Contents?: true

Size: 1.56 KB

Versions: 41

Compression:

Stored size: 1.56 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).
part_of_admin_layout: true
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

41 entries across 41 versions & 1 rubygems

Version Path
govuk_publishing_components-12.0.1 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-12.0.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-11.2.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-11.1.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-11.0.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-10.2.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-10.1.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-10.0.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-9.28.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-9.27.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-9.26.1 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-9.26.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-9.25.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-9.24.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-9.23.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-9.22.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-9.21.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-9.20.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-9.19.0 app/views/govuk_publishing_components/components/docs/layout_header.yml
govuk_publishing_components-9.18.0 app/views/govuk_publishing_components/components/docs/layout_header.yml