Sha256: de3a627540ecc8f73de58023bb5afe1bfe84a70ac2c1d290c93b6174f1d29103

Contents?: true

Size: 1.41 KB

Versions: 4

Compression:

Stored size: 1.41 KB

Contents

name: Share links
description: Links to share the current page on Facebook or Twitter
body: |
  Pass complete share URLs to the component. The component will not process a URL into a share link itself.

  Use only with content that benefits from being shared, for example a consultation.

  The component will track interactions with the share links to Google Analytics using [Social Interactions](https://developers.google.com/analytics/devguides/collection/analyticsjs/social-interactions)

  Real world examples:

    - [News article](/government/news/fast-tracking-uk-innovation-apply-for-business-funding)
    - [Consultation](/government/consultations/soft-drinks-industry-levy)
    - [Right to left](/government/news/uk-sets-out-long-term-support-for-stable-secure-and-prosperous-afghanistan-to-2020.ur)

accessibility_criteria: |
  The share link icons must be presentational and ignored by screen readers.
shared_accessibility_criteria:
  - link
examples:
  default:
    data:
      facebook_href: '/facebook-link'
      twitter_href: '/twitter-link'
  with_custom_text:
    data:
      title: 'Share this news article'
      facebook_href: '/facebook-share-link'
      twitter_href: '/twitter-share-link'
  with_only_one_link_provided:
    data:
      facebook_href: '/only-facebook-link'
  right_to_left:
    data:
      facebook_href: '/facebook-link'
      twitter_href: '/twitter-link'
    context:
      right_to_left: true

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
govuk_publishing_components-8.2.0 app/views/govuk_publishing_components/components/docs/share_links.yml
govuk_publishing_components-8.1.0 app/views/govuk_publishing_components/components/docs/share_links.yml
govuk_publishing_components-8.0.1 app/views/govuk_publishing_components/components/docs/share_links.yml
govuk_publishing_components-8.0.0 app/views/govuk_publishing_components/components/docs/share_links.yml