Sha256: b511d8bcc900be1975ca0fa9f8ad176fb2430338cb77c265a4ed6c865a12b72e

Contents?: true

Size: 1.25 KB

Versions: 13

Compression:

Stored size: 1.25 KB

Contents

name: "Glance metric"
description: "The glance metric component is an at-a-glance view of data for a content item. The minimum requirements for it to display are a name and figure. "
part_of_admin_layout: true
body: |

accessibility_criteria: |
  This component must:
  
  - include an explicit label when an abbreviated label is also used
  - communicate number value and label (if present) in a single dictation when read with a screen reader
  - convey the meaning of the number shown
  - The component must use the correct heading level for the page (defaults to `<h3>`) 

shared_accessibility_criteria:
  - link

uses_component_wrapper_helper: true
examples:
  default:
    data:
      name: "Unique pageviews"
      figure: "167"
      measurement_display_label: "m"
      measurement_explicit_label: "million"
      context: "This is in your top 10 items"
  no measurement labels:
    data:
      name: "Feedback comments"
      figure: "35"
  custom heading level:
    description: A custom heading level can be specified if necessary. Defaults to a `h3`. The heading level does not change any styling.
    data:
      name: "Feedback comments"
      figure: "35"
      measurement_display_label: "m"
      measurement_explicit_label: "million"
      heading_level: 2

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
govuk_publishing_components-51.1.0 app/views/govuk_publishing_components/components/docs/glance_metric.yml
govuk_publishing_components-51.0.0 app/views/govuk_publishing_components/components/docs/glance_metric.yml
govuk_publishing_components-50.0.1 app/views/govuk_publishing_components/components/docs/glance_metric.yml
govuk_publishing_components-50.0.0 app/views/govuk_publishing_components/components/docs/glance_metric.yml
govuk_publishing_components-49.1.0 app/views/govuk_publishing_components/components/docs/glance_metric.yml
govuk_publishing_components-49.0.0 app/views/govuk_publishing_components/components/docs/glance_metric.yml
govuk_publishing_components-48.0.0 app/views/govuk_publishing_components/components/docs/glance_metric.yml
govuk_publishing_components-47.0.0 app/views/govuk_publishing_components/components/docs/glance_metric.yml
govuk_publishing_components-46.4.0 app/views/govuk_publishing_components/components/docs/glance_metric.yml
govuk_publishing_components-46.3.1 app/views/govuk_publishing_components/components/docs/glance_metric.yml
govuk_publishing_components-46.3.0 app/views/govuk_publishing_components/components/docs/glance_metric.yml
govuk_publishing_components-46.2.0 app/views/govuk_publishing_components/components/docs/glance_metric.yml
govuk_publishing_components-46.1.0 app/views/govuk_publishing_components/components/docs/glance_metric.yml