Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Add native sharing to GOV.UK pages #2004

Open
edent opened this issue Feb 2, 2021 · 5 comments
Open

Proposal: Add native sharing to GOV.UK pages #2004

edent opened this issue Feb 2, 2021 · 5 comments

Comments

@edent
Copy link

edent commented Feb 2, 2021

As a user, I want an easy way to share information from GOV.UK with other people, without having to download a PDF or print off a document.

The Web Share API allows users to easily share a website. This means that a site doesn't need to have a dozen social media logos, app icons, and external links on a site.

Click the share button and the user's device prompts them to share the URL with the apps they have on their own device.

Native web share is supported on all major mobile browsers - the majority of users on the site.

Because it is powered by JavaScript, it can use progressive enhancement. If navigator.canShare() returns true then the share button can be displayed on screen.

There is already a print button at the bottom of most HTML pages.

Print button on a website

The current crop of share buttons (see below) were implemented 7 years ago/

@edent
Copy link
Author

edent commented Feb 2, 2021

Interestingly, the Parliamentary Petitions website has a couple of social media icons. The WhatsApp icon only shows up to mobile users.
Social media icons for Facebook, Twitter, WhatsApp, and email

@edent
Copy link
Author

edent commented Feb 2, 2021

Some consultation pages have links to share to Facebook and Twitter.
Screenshot of a page with social sharing links.

@edent
Copy link
Author

edent commented Feb 2, 2021

Blog posts also have Facebook, Twitter, LinkedIn, and Email.
Screenshot of sharing links on a blog post.

@edent
Copy link
Author

edent commented Feb 2, 2021

And other! This one with a WhatsApp URI.
Screenshot of the WhatsApp icon.

@DeanWanless
Copy link

DeanWanless commented Feb 3, 2021

This will be a useful feature on the Energy Performance of Buildings Register. Some of the feedback that we're hearing from UR is that people are more likely to engage with their EPC certificate when they receive a link than if they receive a PDF attachment. Will be a helpful tool as we try to wean the industry off of dependency on PDF sharing. We're exploring sharing by email and maybe "copy URL to clipboard" as our options. Social sharing less of an issue around Energy Assessment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants