You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: