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

feat: adds direction property to mj-social-element to reverse icon/text order #2881

Merged
merged 4 commits into from
Jul 30, 2024

Conversation

jamestomasino
Copy link
Contributor

image

I've been running into a lot of situations in email builds, especially on links, where designers place an arrow or other image on the right side of the text. mj-social does a fantastic job with image/text layouts, but it was lacking an option to reverse the order of the image and the text. I've added a new property direction as an enum of 'left' or 'right' which swaps the rendering of the TDs in the render method to support this change.

@jamestomasino jamestomasino changed the title adds direction property to mj-social-element to reverse icon/text order feat: adds direction property to mj-social-element to reverse icon/text order Jul 4, 2024
@iRyusa
Copy link
Member

iRyusa commented Jul 4, 2024

Hi and thanks for the contribution!

Can we rename this to icon-position instead ?

@jamestomasino
Copy link
Contributor Author

Absolutely. I'll modify now.

@jamestomasino
Copy link
Contributor Author

Updated, and also added it to the mjml-social-element readme properties list

@iRyusa iRyusa merged commit 5117400 into mjmlio:master Jul 30, 2024
3 checks passed
@justwiebe
Copy link

When will there be a release for this? I don't see it in the latest 4.15.3 package

@ColinTravis
Copy link

I'm also noticing this doesn't appear to be live in the newest 4.15.3 branch. Is there a newer version coming that will include this?

@iRyusa
Copy link
Member

iRyusa commented Oct 5, 2024

Experimental branch has it and should be near a release state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants