Crabar / ember-social-share

Social share buttons for EmberJS app that works without meta tags
MIT License
13 stars 10 forks source link

Email share button #19

Closed briandaviddavidson closed 6 years ago

briandaviddavidson commented 6 years ago

This PR adds a Share via e-mail button. It allows the developer to pass in whatever body, subject, title, and recipient they want. If none are provided, the default e-mail client for that person's computer will open to a blank e-mail.

There is an issue where the button doesn't align properly with the other buttons in the dummy app, so any help would be greatly appreciated @Crabar!

Crabar commented 6 years ago

Thank you for your work. I don't see any bad in a giving to developer a possibility to show "mailto" button with this addon.

I'm not sure about adding extra parameters such as body and subject. Component already has text and title properties that can be used here. And there is a misunderstanding of title property in your PR. This property should show a title of share message not a tooltip for a component.

briandaviddavidson commented 6 years ago

That makes sense. I can change it to just take body, subject, and recipients.

Crabar commented 6 years ago

Finally, I had time to look. Really there is some foggy problem with e-mail button positioning. I will try to fix it, and also will make few changes in e-mail button api.

briandaviddavidson commented 6 years ago

Closing in favor of #21