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
Use <web-share-wrapper> for article sharing #1524
Conversation
|
How does it look on a smaller device, phone sized? |
Much the same, I just don't have a mobile Android device to hand to screenshot right now. |
|
Please see #1579 which adds the webcomponents polyfill. Perhaps that one should be added in a more central place? |
|
@Link2Twenty It's not a web-based modal dialog, it actually activates the device's native share pane: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share So how does it look? the same way shares look from whatsapp, telegram, or mastodon - the way the OS UI designers intended. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome. nice work.
|
Can I get a team member to review this or let me know what they might be thinking about it? I don't seem to be able to request reviews. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this pr @philnash ! I've tested it on my android and it works really well.
|
Hey @philnash would you like to write up a changelog on dev.to? |
|
Glad this got merged, thanks everyone! Sorry I didn't get back to you @maestromac, was on holiday and avoiding computers/emails/etc. Will likely write up a post about this soon though. |

What type of PR is this? (check all applicable)
Description
This is an initial attempt at replacing share links with the web share API on supported platforms. It uses
<web-share-wrapper>, a custom element that only takes over if the web share API is available (currently Chrome on Android, but it's in preview in Safari too).One question: I'm not sure this is the best way to include the module. Ideally it would just sit in the vendor bundle, but I couldn't work out how to get it in there. Any help on that would be appreciated.
Related Tickets & Documents
#399
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
Added to documentation?
[optional] What gif best describes this PR or how it makes you feel?