Jarzka / stylefy

Clojure(Script) library for styling user interface components with ease.
MIT License
317 stars 10 forks source link

A way to convert to inline styles only? #28

Closed nijk closed 6 years ago

nijk commented 6 years ago

I have a use case where the Stylefy re-render causes issues with a JS tooltip dependency, the placement is miscalculated when calling (use-style ...).

I'm wondering if there is a workaround available by requiring in a Stylefy function that will parse the Garden values and give me back a style map that can be passed directly to Hiccup?

Jarzka commented 6 years ago

I think I cannot understand your case without a code example.

Currently the function which is used to parse Garden units inside a style map is not part of stylefy's public API (since it should not really be needed). However, you can take a look at its implementation at stylefy.impl.utils namespace.

By the way, I'm on holiday now, so this is all the info I can give you quickly right now. 😎

nijk commented 6 years ago

Thanks @Jarzka I've been digging into Garden a bit as I realised after posting this issue that it is probably a Garden question. Enjoy your holiday!