Sha256: e1efa4e9b0462557361335c576849fc88df8dedd717e4fe438d059f7a0deaa3e

Contents?: true

Size: 1.15 KB

Versions: 9

Compression:

Stored size: 1.15 KB

Contents

name: Cookie banner
description: Help users manage their personal data by telling them when you store cookies on their device.
body: |
  Setting `data-hide-cookie-banner="true"` on any link inside the banner will overwrite the default action and when clicked will dismiss the cookie banner for a period of 365 days (approx. 1 year).

  If the examples below are not showing the banner, make sure the `cookies_preferences_set` cookie is not present or is set to false.
accessibility_criteria: |
  Text in the cookie banner must be clear and unambiguous and should provide a way to dismiss the message.
shared_accessibility_criteria:
  - link
accessibility_excluded_rules:
  - 'duplicate-id' # a banner should have a unique id for a given page. However, this page contains multiple examples of the banner with the same id.
examples:
  default:
    data: {}
  with_custom_text:
    data:
      text: "This is some custom text in my cookie banner which lets users know what we're using cookies for. I can also include a link to the <a class='govuk-link' href='/cookies'>cookies page</a>"
  with_custom_cookie_preferences_href:
    data:
      cookie_preferences_href: "/cookies"

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
govuk_publishing_components-21.38.5 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-21.38.4 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-21.38.3 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-21.38.2 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-21.38.1 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-21.38.0 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-21.37.0 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-21.36.1 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-21.36.0 app/views/govuk_publishing_components/components/docs/cookie_banner.yml