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

Spacing of elements doesn't work inside Input.styledChoice #99

Open j-panasiuk opened 7 years ago

j-panasiuk commented 7 years ago

The big picture of what I'm trying to do

Trying to style custom options inside Input.radioRow (using Input.styledChoice)

What I did

Input.styledChoice "Cats" <|
    \selected ->
        El.row None
            [ A.spacing 999 ]
            [ El.el None [] (El.text "Cats")
            , El.circle 10 Circle [] El.empty
            , El.text "Dogs"
            ]

What I Expected To Happen

I expected spacing of 999 pixels between row elements to appear as advertised

What Actually Happened

Elements ignore parent spacing https://ellie-app.com/7y9GZDbLSa1/0

Versions