Sha256: a908b7c05435f52e383feec2a14b8da3beffdf51aab8fa3b33f892600d7f55ff

Contents?: true

Size: 1.67 KB

Versions: 126

Compression:

Stored size: 1.67 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
accessibility_excluded_rules:
  - skip-link # This component is creating references to to sections on the page that do not exist in examples
uses_component_wrapper_helper: true
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_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 opening in a new window
        href: '#example-error-1'
        target: '_blank'
      - text: Descriptive link to the question with an error opening in the same window
        href: '#example-error-2'
        target: '_self'

Version data entries

126 entries across 126 versions & 1 rubygems

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