carrot / share-button

:warning: :warning: Currently Unmaintained :warning: :warning: - fast, beautiful, and painless social shares:
http://sharebutton.co/
Other
2.95k stars 381 forks source link

Can I use the common "Share icon" instead of the button text and font-awesome icon showed in the demo? #316

Open Nazarah opened 7 years ago

Nazarah commented 7 years ago

Details

share-button

This one is more intuitive and common among people. Got this from Android material Design icon set.

refi64 commented 7 years ago

FWIW this is untested, but you should be able to shove this in your CSS:

share-button:before {
  background: url("URL-TO-MY-ICON.svg");
}

and then create a ShareButton using this:

new ShareButton({ui: { buttonText: '' }});
Nazarah commented 7 years ago

Thanks a lot for the help. :) i'll have a look to the code. :)