Sha256: 0a0ec9d012255abd6328f4fb21b7eca256f33ca7dbdd366b630bab2f6dd0c29b

Contents?: true

Size: 1.32 KB

Versions: 10

Compression:

Stored size: 1.32 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 `seen_cookie_message` 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.

  Links in the component must:

  - accept focus
  - be focusable with a keyboard
  - indicate when they have focus
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: {}
  custom_message:
    data:
      id: custom-message
      message: GOV.UK uses cookies to make the site simpler. <a class="govuk-link" href="/help/cookies">Find out more about cookies</a>
  new_cookie_banner:
    description: FOR TESTING PURPOSES ONLY. This is a new proposed iteration of the cookie banner. The current banner will remain the same across the live site for now.
    data:
        new_cookie_banner: true

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
govuk_publishing_components-17.7.0 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-17.6.1 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-17.6.0 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-17.5.0 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-17.4.0 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-17.3.0 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-17.2.0 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-17.1.1 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-17.1.0 app/views/govuk_publishing_components/components/docs/cookie_banner.yml
govuk_publishing_components-17.0.0 app/views/govuk_publishing_components/components/docs/cookie_banner.yml