-
Notifications
You must be signed in to change notification settings - Fork 17
/
share-links.yml
34 lines (27 loc) · 1.32 KB
/
share-links.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 must:
- accept focus
- be focusable with a keyboard
- be usable with a keyboard
- indicate when it has focus
The share link icons must be presentational and ignored by screen readers.
fixtures:
default:
facebook_href: '/facebook-link'
twitter_href: '/twitter-link'
with_custom_text:
title: 'Share this news article'
facebook_href: '/facebook-share-link'
twitter_href: '/twitter-share-link'
with_only_one_link_provided:
facebook_href: '/only-facebook-link'