mdgriffith / style-elements

Create styles that don't mysteriously break!
http://package.elm-lang.org/packages/mdgriffith/style-elements/latest
BSD 3-Clause "New" or "Revised" License
445 stars 49 forks source link

style-elements 5.0.0 misses function to make unguarded option #157

Open JDemler opened 6 years ago

JDemler commented 6 years ago

The new style-elements still allows Style.styleSheetWith to be called with a list of options.

The only way to make an option though was Style.unguarded. This function was commented out, but the code around it stayed the same. code

Is this an intentional change? How can I achieve unguarded styles in 5.0.0?

mdgriffith commented 6 years ago

Unguarded styles became very tricky to implement in 0.19 because toString can't be used in a package or code compiled with --optimize.

So, I removed it when doing the upgrade, but I forgot that it was the only option for styleSheetWith!