Sha256: d097ab00fc3651da35d88cc742db781e8a7a55cd79c219b07b06bb29241bfbdc

Contents?: true

Size: 1.33 KB

Versions: 13

Compression:

Stored size: 1.33 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
uses_component_wrapper_helper: true
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
    context:
      dark_background: true
  inverse_for_blue_background_with_app_name:
    data:
      app_name: Skittles Maker
      phase: beta
      inverse: true
    context:
      dark_background: 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
      disable_ga4: true

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
govuk_publishing_components-51.1.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-51.0.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-50.0.1 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-50.0.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-49.1.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-49.0.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-48.0.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-47.0.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-46.4.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-46.3.1 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-46.3.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-46.2.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml
govuk_publishing_components-46.1.0 app/views/govuk_publishing_components/components/docs/phase_banner.yml