Sha256: 35e69717d6f645e1a43fb4c14c408285a8a2c1af8db6931a3a508418584c21ce

Contents?: true

Size: 1.24 KB

Versions: 57

Compression:

Stored size: 1.24 KB

Contents

name: Phase banner
description: |
  A banner that indicates content is in a certain phase (usually alpha or beta), with an optional explanation
accessibility_criteria: |
  The label must:

  - have a text contrast ratio higher than 4.5:1 against the background colour to meet WCAG AA
shared_accessibility_criteria:
  - link
examples:
  default:
    data:
      phase: alpha
  beta_banner:
    data:
      phase: beta
  with_message:
    data:
      phase: beta
      message: This is an optional different message to explain what the state means in this
        context which can take <a class="govuk-link" href='https://www.gov.uk'>HTML</a>
  with_app_name:
    data:
      app_name: Skittles Maker
      phase: beta
  inverse_for_blue_background:
    data:
      phase: beta
      inverse: true
  inverse_for_blue_background_with_app_name:
    data:
      app_name: Skittles Maker
      phase: beta
      inverse: true
  without_ga4_tracking:
    description: |
      Disables GA4 tracking on the banner. Tracking is enabled by default. This includes link tracking on the component itself, and allows pageviews to record the presence of the banner on page load.
    data:
      app_name: Skittles Maker
      phase: beta
      inverse: true
      disable_ga4: true

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
govuk_publishing_components-43.3.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-43.2.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-43.1.1 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-43.1.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-43.0.2 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-43.0.1 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-43.0.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-42.1.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-42.0.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-41.1.2 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-41.1.1 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-41.1.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-41.0.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-40.1.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-40.0.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-39.2.5 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-39.2.4 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-39.2.3 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-39.2.2 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-39.2.1 app/views/govuk_publishing_components/components/docs/phase_banner.yml