Sha256: 32e771a3aedf68d21c22154a54b1e0eed14efe85a4115533b87696efed339471

Contents?: true

Size: 1.78 KB

Versions: 21

Compression:

Stored size: 1.78 KB

Contents

name: Error alert
description: Used at the top of the page, to summarise a unsuccessful user action.
uses_component_wrapper_helper: true
accessibility_criteria: |
  - should be focused on page load, to ensure the message is noticed by
    assistive tech
  - Should have a role of `alert` to communicate that is a important and
    time sensitive message
examples:
  default:
    data:
      message: Message to alert the user to a unsuccessful action goes here
  with_message_and_description:
    data:
      message: Message to alert the user to a unsuccessful action goes here
      description: A further description
  long_example:
    data:
      message: |
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut aliquet
        dignissim dui, ac laoreet tortor vulputate nec. Aenean quis turpis
        orci. Proin semper porttitor ipsum, vel maximus justo rutrum vel.
        Morbi volutpat facilisis libero. Donec posuere eget odio non egestas.
        Nullam sed neque quis turpis.
  with_data_attributes:
    description: |
      The example shown applies a tracking attribute specifically for use by Google Tag Manager in [Content Publisher](https://github.com/alphagov/content-publisher).

      Other data attributes can also be applied as required. Note that the component does not include built in tracking. If this is required consider using the [GA4 link tracker](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/trackers/ga4-link-tracker.md).
    data:
      message: Message to alert the user to a unsuccessful action goes here
      description: A further description
      data_attributes:
        tracking: GTM-123AB
  with_specified_id_attribute:
    data:
      id: test-id
      message: Message to alert the user to a unsuccessful action goes here

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
govuk_publishing_components-45.9.0 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-45.8.0 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-45.7.0 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-45.6.1 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-45.6.0 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-45.5.0 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-45.4.1 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-45.4.0 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-45.3.0 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-45.2.0 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-45.1.0 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-45.0.0 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-44.11.0 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-44.10.0 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-44.9.1 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-44.9.0 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-44.8.0 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-44.7.1 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-44.7.0 app/views/govuk_publishing_components/components/docs/error_alert.yml
govuk_publishing_components-44.6.0 app/views/govuk_publishing_components/components/docs/error_alert.yml