rtfeldman / elm-css

Typed CSS in Elm.
https://package.elm-lang.org/packages/rtfeldman/elm-css/latest
BSD 3-Clause "New" or "Revised" License
1.23k stars 196 forks source link

Allow multiple css attributes on root node #566

Closed micahhahn closed 2 years ago

micahhahn commented 2 years ago

Fix #558

After discussion on #558 with @rtfeldman we decided that the cat is out of the bag on restricting users from being able to apply multiple css attributes to a single node. This has already been allowed for child nodes of the node passed to toUnstyled so this PR simply allows this on the root node as well (and we get to pull some code 😁).

This will cause less confusion for users of this library. Previously converting a node to be lazy could cause css styles to be dropped.

rtfeldman commented 2 years ago

Thanks @micahhahn!

rtfeldman commented 2 years ago

Published as 17.1.1