style-elements icon indicating copy to clipboard operation
style-elements copied to clipboard

Elements scrunched when wrapped with a `link`

Open cmditch opened this issue 8 years ago • 0 comments

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

  • Elm: 0.18
  • style-elements: 4.2.1
  • Browser: like Chrome 63.0.3239.84
  • Operating System: macOS 10.13.2

cmditch avatar Dec 29 '17 06:12 cmditch