Sha256: dbbf6495b9d5dd53d7787c593f5d7186b7a8e875f03100451262ac23e30b96d1

Contents?: true

Size: 1.79 KB

Versions: 4

Compression:

Stored size: 1.79 KB

Contents

name: Form error summary
description: Used at the top of the page, to summarise validation errors.
accessibility_criteria: |
  - should be focused on page load, to ensure this error is noticed by assistive tech
  - list of errors should be clickable and focus the inputs with errors
shared_accessibility_criteria:
  - link
examples:
  default:
    data:
      id: error-summary
      title: Message to alert the user to a problem goes here
      description: Optional description of the errors and how to correct them
      items:
      - text: Descriptive link to the question with an error
        href: '#example-error-1'
  with_many_errors:
    data:
      title: Message to alert the user to a problem goes here
      description: Optional description of the errors and how to correct them
      items:
      - text: Descriptive link to the question with an error 1
        href: '#example-error-1'
      - text: Descriptive link to the question with an error 2
        href: '#example-error-2'
      - text: Description of error without link
  with_data_attributes:
    data:
      title: Message to alert the user to a problem goes here
      description: Optional description of the errors and how to correct them
      data_attributes:
        tracking: GTM-123AB
      items:
      - text: Descriptive link to the question with an error 1
  with_custom_target_on_links:
    data:
      title: Message to alert the user to a problem goes here
      description: Optional description of the errors and how to correct them
      items:
      - text: Descriptive link to the question with an error oppening in a new window
        href: '#example-error-1'
        target: '_blank'
      - text: Descriptive link to the question with an error oppening in the same window
        href: '#example-error-2'
        target: '_self'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
govuk_publishing_components-16.29.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-16.28.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-16.27.1 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-16.27.0 app/views/govuk_publishing_components/components/docs/error_summary.yml