Sha256: 6627d9e477723f164e1358eeaf4f315af6841a1ff573695b276a187480b63249

Contents?: true

Size: 1.84 KB

Versions: 40

Compression:

Stored size: 1.84 KB

Contents

name: Emergency banner
description: A site-wide banner used in the event of an emergency
body: |
  There are three types of events that would lead GOV.UK to add an emergency banner to the top of each page on the web site; a notable death, a national emergency or a local emergency.

  See the [opsmanual](https://docs.publishing.service.gov.uk/manual/emergency-publishing.html#adding-emergency-publishing-banners) for information about what the Emergency Banner is and when it should be deployed.

shared_accessibility_criteria:
  - link
accessibility_excluded_rules:
  - duplicate-id-aria # IDs will be duplicated in component examples list
  - landmark-unique # aria-label attributes will be duplicated in component examples list
examples:
  default:
    description: |
      Death of a notable person
    data:
      campaign_class: "notable-death"
      heading: "His Royal Highness Henry VIII"
      short_description: "1491 to 1547"
      link_text: "Override Link Text"
      link: "https://www.gov.uk/"
  national_emergency:
    description: |
      National emergency (level 1 or category 2)
    data:
      campaign_class: "national-emergency"
      heading: "National emergency"
      short_description: "This is a level 1 incident"
      link: "https://www.gov.uk/"
  local_emergency:
    description: |
      Localised large-scale emergency (level 2 or category 1)
    data:
      campaign_class: "local-emergency"
      heading: "Local emergency"
      short_description: "This is a level 2 incident"
      link: "https://www.gov.uk/"
  notable_death_homepage:
    description: |
      When presenting any type of emergency banner on homepage the styling is slightly different.
    data:
      campaign_class: "notable-death"
      heading: "His Royal Highness Henry VIII"
      short_description: "1491 to 1547"
      link: "https://www.gov.uk/"
      homepage: true

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
govuk_publishing_components-35.13.2 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.13.1 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.13.0 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.12.0 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.11.0 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.10.0 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.9.0 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.8.0 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.7.0 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.6.0 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.5.0 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.4.0 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.3.5 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.3.4 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.3.3 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.3.2 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.3.1 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.3.0 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.2.0 app/views/govuk_publishing_components/components/docs/emergency_banner.yml
govuk_publishing_components-35.1.1 app/views/govuk_publishing_components/components/docs/emergency_banner.yml