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

Shadows don't stuck #136

Open justgook opened 6 years ago

justgook commented 6 years ago

as mention in docs

If multiple shadows are set, they will stack.

but in real they are overwritten
https://github.com/mdgriffith/style-elements/blob/92789fd003c799c6f988202d6a4b7fe6e41194fe/src/Style/Internal/Render.elm#L251

By removing that line all works as documented..

PS. would be nice add code example about how stack shadows:

Style.style MyStyleWithMultipleShadow
    [ Shadow.glow Color.red 5
    , Shadow.glow Color.blue 15
    ]