Sha256: 93cf59532fd6cc0feededdce924fd4dfb717b1b88295009fbcb78667fb999657

Contents?: true

Size: 1.95 KB

Versions: 64

Compression:

Stored size: 1.95 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'
        data_attributes:
          tracking: GTM-123AA
      - text: Descriptive link to the question with an error 2
        href: '#example-error-2'
        data_attributes:
          tracking: GTM-123AB
      - text: Description of error without link
        data_attributes:
          tracking: GTM-123AC
  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

64 entries across 64 versions & 1 rubygems

Version Path
govuk_publishing_components-21.13.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.12.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.11.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.10.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.9.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.8.1 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.8.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.7.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.6.1 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.6.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.5.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.4.1 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.4.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.3.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.2.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.1.1 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.1.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-21.0.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-20.5.2 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-20.5.1 app/views/govuk_publishing_components/components/docs/error_summary.yml