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

:style maps kebab-case to CamelCase automatic conversion only works with literals? #127

Closed
xavi opened this issue Mar 19, 2017 · 2 comments

Comments

@xavi
Copy link

xavi commented Mar 19, 2017

When having something like

[:div {:style (merge {:margin-left "2rem"}
                      (when focused? {:color "red"}))}]

The browser shows

Warning: Unsupported style property margin-left. Did you mean marginLeft?

This doesn't happen when the style is a map literal instead of the result of a merge.

Is it a bug? In Rum or in Ŝablono?

@xavi xavi changed the title :style maps kebab-case to CamelCase automatic conversion only works with literals? :style maps kebab-case to CamelCase automatic conversion only works with literals? Mar 19, 2017
@martinklepsch
Copy link
Contributor

martinklepsch commented Mar 19, 2017 via email

@xavi
Copy link
Author

xavi commented Mar 19, 2017

👍 Moving it there (r0man/sablono#158) and closing this.
Thanks!

@xavi xavi closed this as completed Mar 19, 2017
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