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

Passing inline styles down from an Inky component causes sass styles to be overwritten #140

Open
ryanfrawley opened this issue Apr 22, 2022 · 0 comments

Comments

@ryanfrawley
Copy link

ryanfrawley commented Apr 22, 2022

I'm using Inky with Auth0 email templates. Auth0 uses handlebars for variable substitution. For one of our components, we need to pass in a brand color variable that looks like: {{ organization.branding.colors.primary }}. Is there a clean way to pass this as an inline style for the background color? Something like

<button href="..." style="background-color: {{{{raw}}}}{{ organization.branding.colors.primary }}{{{{/raw}}}}">

almost works, but it ends up overwriting the existing styles supplied by the component. Does Inky support combing of inline styles instead of overwriting them? If not, this may be a nice to have feature.

@ryanfrawley ryanfrawley changed the title Passing inline styles down from an Inky component causes other styles to be overwritten Passing inline styles down from an Inky component causes sass styles to be overwritten Apr 22, 2022
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

1 participant