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

add x social network in socialelements.js with correct path to img #2777

Merged
merged 3 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/mjml-social/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ Displays calls-to-action for various social networks with their associated logo.
<mj-social-element name="google" href="https://mjml.io/">
Google
</mj-social-element>
<mj-social-element name="twitter" href="https://mjml.io/">
<mj-social-element name="twitter" href="https://mjml.io/">
Twitter
</mj-social-element>
<mj-social-element name="x" href="https://mjml.io/">
X
</mj-social-element>
</mj-social>
</mj-column>
</mj-section>
Expand Down Expand Up @@ -106,6 +109,7 @@ vertical-align | string | top/middle/bottom | midd
Supported networks with a share url:
- facebook
- twitter
- x
- google
- pinterest
- linkedin
Expand Down
5 changes: 5 additions & 0 deletions packages/mjml-social/src/SocialElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ const defaultSocialNetworks = {
'background-color': '#55acee',
src: `${IMG_BASE_URL}twitter.png`,
},
x: {
'share-url': 'https://twitter.com/intent/tweet?url=[[URL]]',
'background-color': '#000000',
src: `${IMG_BASE_URL}twitter-x.png`,
},
google: {
'share-url': 'https://plus.google.com/share?url=[[URL]]',
'background-color': '#dc4e41',
Expand Down
Loading