Sha256: 0d8b00dfaffdaf9a3d3151acc96ea839aab44278cfec12e0da46a758ba166285

Contents?: true

Size: 1.21 KB

Versions: 7

Compression:

Stored size: 1.21 KB

Contents

name: Warning text
description: |
  Use the warning text component when you need to warn users about something important, such as legal consequences of an action, or lack of action, that they might take.
govuk_frontend_components:
  - warning-text
accessibility_criteria: |
  All text must have a contrast ratio higher than 4.5:1 against the background colour to meet [WCAG AA](https://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast)
uses_component_wrapper_helper: true
examples:
  default:
    data:
      text: "You can be fined up to £5,000 if you don’t register."
  custom_assistive_text:
    data:
      text_assistive: "Danger"
      text: "You can be fined up to £5,000 if you don’t register."
  custom_icon_text:
    data:
      text_icon: "£"
      text: "You can be fined up to £5,000 if you don’t register."
  without_icon:
    data:
      text_icon: ""
      text: "You can be fined up to £320 if you don't register."
  with_larger_font:
    data:
      text: "This content was updated on the 24th of November 2018"
      large_font: true
  with_red_font:
    data:
      text: "This content has changed"
      highlight_text: true
  as_a_heading:
    data:
      text: "This is a heading 3"
      heading_level: 3

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
govuk_publishing_components-51.1.0 app/views/govuk_publishing_components/components/docs/warning_text.yml
govuk_publishing_components-51.0.0 app/views/govuk_publishing_components/components/docs/warning_text.yml
govuk_publishing_components-50.0.1 app/views/govuk_publishing_components/components/docs/warning_text.yml
govuk_publishing_components-50.0.0 app/views/govuk_publishing_components/components/docs/warning_text.yml
govuk_publishing_components-49.1.0 app/views/govuk_publishing_components/components/docs/warning_text.yml
govuk_publishing_components-49.0.0 app/views/govuk_publishing_components/components/docs/warning_text.yml
govuk_publishing_components-48.0.0 app/views/govuk_publishing_components/components/docs/warning_text.yml