weavejester / hiccup

Fast library for rendering HTML in Clojure
http://weavejester.github.io/hiccup
Eclipse Public License 1.0
2.68k stars 175 forks source link

Allow keywords in style maps #194

Closed shhivam closed 2 years ago

shhivam commented 2 years ago

I made a copy of PR#140 since that PR was no longer active

From PR#140 of Paulus Esterhazy pesterhazy@gmail.com:

Reagent allows keywords as CSS attribute values such as
{:style {:color :red}}

Hiccup already supports this for top-level DOM node attributes. This commit
extends this feature to style maps.
shhivam commented 2 years ago

Thanks @weavejester for the quick merge! This was my very first open source contribution (although very very small)

weavejester commented 2 years ago

Well done 😃