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

Elements scrunched when wrapped with a `link` #133

Open cmditch opened 6 years ago

cmditch commented 6 years ago

What I'm trying to do

Have a menu bar of link wrapped buttons e.g., link "www.google.com" <| button.... Here is a screen shot of plain old buttons screen shot 2017-12-28 at 10 34 17 pm Here is code for this in action.

What I did & What Actually Happened

screen shot 2017-12-28 at 10 34 49 pm Here is the code and resulting output when the buttons are wrapped with a tags. Despite the parent of the link being width fill and all the buttons being width fill, height fill, this scrunching results.

I can see how it would be problematic, from an API design standpoint, to allow an attributes array for link elements. I'm definitely eager to hear a different technique to this achieve the menu bar buttons. I tried using el's instead of buttons, but the scrunching persists.

Thanks Coury

Versions