Skip to content

Commit

Permalink
Update use-style doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarzka authored May 30, 2020
1 parent c8aca45 commit 8847af0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cljc/stylefy/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
resolving corner cases in which complex CSS selectors are needed.
For the most part, it is recommended to use ::sub-styles.
Options is an optional map, which contains HTML attributes (:class, :href, :src etc.).
It can also contain the following special keywords features:"
Options is an optional map, which contains HTML attributes (:class, :href, :src etc.)."
([style] (use-style style {}))
([style options]
(assert (or (map? style) (nil? style)) (str "Style should be a map or nil, got: " (pr-str style)))
Expand Down Expand Up @@ -234,4 +233,4 @@
(assert (or (map? style) (nil? style)) (str "Style should be a map or nil, got: " (pr-str style)))
(when style
(impl-styles/prepare-styles [style]))
style))
style))

0 comments on commit 8847af0

Please sign in to comment.