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

!important is not compiled into inline css #18

Open
ligockym opened this issue Feb 18, 2017 · 1 comment
Open

!important is not compiled into inline css #18

ligockym opened this issue Feb 18, 2017 · 1 comment

Comments

@ligockym
Copy link

Hello,
I think that I have found a bug in your module.

I have this css code:
.button {color: #333 !important}

But it is compiled into:
<div style="color: #333"></div>

The !important is missing in the compiled document. This can cause a problem in email-clients which use to make hyperlinks underlined by using !important.

@jeremypeter
Copy link
Contributor

@ligockym You should be able to use the Juice option preserveImportant and set it to true

Example:

var options = {
  juice: {
    preserveImportant: true
  }
}
var emailBuilder = new EmailBuilder(options);

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