Sha256: 7749d2d0df72a705bcba45d73d1dacefd012bee843734c7927cea0d145f9f5a8

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

name: Global banner
description: A site-wide banner used to convey important information
body: |
  If a user has consented to cookies the banner will disappear after three page views, unless the `always_visible` option is used. If no cookie consent is given the banner is always shown.

  The [dev docs](https://docs.publishing.service.gov.uk/manual/global-banner.html) contains further information about this component and when it should be used.
shared_accessibility_criteria:
  - link
examples:
  default:
    data:
      title: Bring photo ID to vote
      banner_version: 1
  with_a_link:
    data:
      title: Bring photo ID to vote
      title_href: "https://www.gov.uk"
      banner_version: 1
  with_a_link_and_text:
    data:
      title: Bring photo ID to vote
      title_href: "https://www.gov.uk"
      text: Check what photo ID you'll need to vote in person in the General Election on 4 July.
      banner_version: 1
  always_visible:
    description: With this option set the banner appears regardless of how many times it has been seen before.
    data:
      title: Bring photo ID to vote
      banner_version: 1
      always_visible: true

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
govuk_publishing_components-51.1.0 app/views/govuk_publishing_components/components/docs/global_banner.yml
govuk_publishing_components-51.0.0 app/views/govuk_publishing_components/components/docs/global_banner.yml