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

Button Styling Looks Off In MS Outlook Web #42

Open
JPStrydom opened this issue Oct 19, 2020 · 3 comments
Open

Button Styling Looks Off In MS Outlook Web #42

JPStrydom opened this issue Oct 19, 2020 · 3 comments

Comments

@JPStrydom
Copy link

image

This image shows the button I get when viewing my email (with the default theme) in outlook web. It looks fine on MS Outlook's desktop app, it just look funny in their web app. I believe it has something to do with the line height, but I might be mistaken. Any idea how to fix this without using a custom theme?

@eladnava
Copy link
Owner

eladnava commented Oct 19, 2020

Hi @JPStrydom,
Thanks for the report!

Just wondering, how did you fit a description in the button text? Are you using a new-line character (\n)?

The button.text is a string which only expects to receive a single line or phrase:

            button: {
                color: '#22BC66', // Optional action button color
                text: 'Confirm your account',
                link: 'https://mailgen.js/confirm?s=d9729feb74992cc3482b350163a1a010'
            }

@JPStrydom
Copy link
Author

I've only given it a single line, much like your example.

@eladnava
Copy link
Owner

eladnava commented Oct 21, 2020

Hi @JPStrydom,
I believe the solution would be to add a white-space: nowrap CSS declaration to the button text.

Can you please try to reproduce by using a shorter button text such as Test Button? Does it still break into two lines?

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

No branches or pull requests

2 participants