A Web Component to share url and text on social networks
MIT License
Bot releases are visible (Hide)
Published by peterpeterparker about 2 years ago
vite
Published by peterpeterparker about 2 years ago
utils
to providers
pretty-quick
and husky
Published by peterpeterparker almost 3 years ago
Published by peterpeterparker almost 3 years ago
dist-custom-elements
instead of deprecated dist-custom-elements-bundle
| #48)import 'web-social-share/dist/components/web-social-share';
Published by peterpeterparker almost 3 years ago
socialShareText
not providedPublished by peterpeterparker almost 3 years ago
module
entry point (#48)package-lock
version v2 - npm v7Published by peterpeterparker over 3 years ago
dist-custom-elements-bundle
)Published by peterpeterparker over 3 years ago
Published by peterpeterparker over 3 years ago
isMobile
detection improvedPublished by peterpeterparker about 4 years ago
Published by peterpeterparker over 4 years ago
Published by peterpeterparker over 4 years ago
Published by peterpeterparker about 5 years ago
There isn't any "breaking changes" but according the type and how you style your icons, you might need to change some CSS variables to keep styles in terms of size the same way.
For example I had to change width
to font-size
in the index.html of the component.
From:
<i class="fab fa-twitter" slot="twitter" style="color: #00aced; width: 1.4rem;"></i>
To:
<i class="fab fa-twitter" slot="twitter" style="color: #00aced; font-size: 1.6rem;"></i>
Published by peterpeterparker over 5 years ago
Published by peterpeterparker over 5 years ago
Published by peterpeterparker over 5 years ago
Notes:
As of version v5.0.0 this Web Component will be shadowed. Therefore, you will have to use slots
to inject the icons for the sharing actions and will have to style these in order to apply for example the proper colors. The README of the component has been updated to reflect these changes.
If you would miss variables to style the component, ping me, I would be happy to add more options.
Published by peterpeterparker over 5 years ago
Published by peterpeterparker over 5 years ago