Sha256: a908b7c05435f52e383feec2a14b8da3beffdf51aab8fa3b33f892600d7f55ff

Contents?: true

Size: 1.67 KB

Versions: 154

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

154 entries across 154 versions & 1 rubygems

Version Path
govuk_publishing_components-55.1.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-55.0.1 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-55.0.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-54.0.1 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-54.0.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-53.0.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-52.1.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-52.0.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-51.2.1 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-51.2.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-51.1.1 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-51.1.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-51.0.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-50.0.1 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-50.0.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-49.1.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-49.0.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-48.0.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-47.0.0 app/views/govuk_publishing_components/components/docs/error_summary.yml
govuk_publishing_components-46.4.0 app/views/govuk_publishing_components/components/docs/error_summary.yml